Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET VB.NET
My problem is that I am unable to navigate from one asp.net page to external links.
I have a page having a hyperlink
<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
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 2-Jan-13 19:46pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Karwa_Vivek at 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 at 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)

  Print Answers RSS
0 OriginalGriff 6,649
1 Sergey Alexandrovich Kryukov 6,270
2 CPallini 5,190
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100