Click here to Skip to main content
15,891,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My problem is that I am unable to navigate from one asp.net page to external links.
I have a page having a hyperlink
HTML
<a href="http://mysite.example.in/Default.aspx?uid=<%=uid %>&pwd=<%=Rpwd %>" target="_blank"  önclick="javascript:resettime()">Click to Go</a>


am passing the user ID and password to that page mysite.example.in
but my problem is that that site uses session and cookies.
Due to which with each login the address of that particular
site is embedded with a session ID like
HTML
mysite.example.in/(S(4ncqq1rvo4jzxz55m4bmk155))/Default.aspx

which is overriding the address what I am passing in Hyperlink.

The need is when user clicks on the hyperlink they should directly get login to
that site with the user login credentials passed through the hyperlink.

Any Ideas how to solve this Issue.
Posted

1 solution

The two sites will need to share a data store, and have a mechanism so you can work out the session id that you need to pass to log in the same user via the URL. You should use a GUID if you can and erase it so it only works once, or it's a major security hole.
 
Share this answer
 
Comments
Karwa_Vivek 3-Jan-13 1:52am    
Yes both site can share data..What is GUID ..at this point,Security issue is not so important.
Can you describe it a bit more
Christian Graus 3-Jan-13 1:53am    
A guid is a unique string. Too long to guess. Security is ALWAYS important

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