Click here to Skip to main content
16,022,752 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have two websites one in ASP.Net and other in PHP.

I want that if a person logged in on one website then he gets a link for second website. When he/she click on that link his userID is passed to second site.

Please help...
Posted
Updated 21-Jul-10 3:20am
v2

You may pass some QueryString (may be encrypted) to the second website
 
Share this answer
 
Comments
ranjansingh235 22-Jul-10 4:38am    
Thank you Gautam,
Is there is other option for doing this?
Well, since one is suppose to be considered as logged into other, an encrypted query string might help.

But you need to form new query string every time such that no one can crack it. Use some encryption method.
 
Share this answer
 
Comments
ranjansingh235 22-Jul-10 4:34am    
Thank you Sandeep for reply,
How can I generate new query every time?
Sandeep Mewara 22-Jul-10 4:44am    
Associate some random numbers, use some algo, might be encrpt it. It's a security measure such that someone just don't use the readable querystring and login into 2nd site without logging into one.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900