Groups > Application developers > Community Server discussion > Re: Member approval through separate page




Member approval through separate page

Member approval through separate page
Fri, 1 Dec 2006 21:36:31 +0000
I have a problem.

I'm setting up a pay member site that is using 2checkout which only likes php. 
So I created a php script to determine if a user has paid then directs her to an
asp.net.  On this asp.net page, I want the user to be automatically approved. 
This way I don't have to go in and manually approve them.  How do I update the
sql table through the asp.net file or run the correct stored procedure?  Any
ideas?
Post Reply
Re: Member approval through separate page
Sat, 2 Dec 2006 01:23:15 +0000
Your actual best bet is to use the php with mssql to write to the table after
successful approval from the script, then just return to the site, this way you
keep all of your approval code in the same language and scripting system.  

 If this doesn't meet your means, you could do another option by passing an
encrypted string over POST from the php script to a custom asp.net script.  This
way you can get verification directly from the script, just be sure to test this
a lot to prevent any type of middle injection of POST.

Check out http://www.php.net for more information on how to connect to Microsoft
SQL via php as well as what modules you need to install for php to do this, you
can also look up alternative php encryptions that will match up to the .Net 2.0
System.Security encryptions.
Post Reply
Re: Member approval through separate page
Tue, 5 Dec 2006 13:56:01 +0000
The webhosting provider I am using does not support php.  So what I have decided
to do is a redirect to an aspx page which will automatically approve the user. 
Does anyone have any sample code that might aid me in creating this?

 

Thanks!
Post Reply
about | contact