Click here to Skip to main content
12,502,104 members (50,442 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160919.1 | Last Updated 3 Jan 2013
Copyright © CodeProject, 1999-2016
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