RE: Redirect to another server and Keeping SESSION variables?
I've got an old asp.net 1.0 site, no sources.. (yikes).
One of the pages was developed for intranet use in 2.0, and now they
want to replace one of the compiled 1.0 sites on another server.
I won't get into all the SSL and authentication items I don't think
are possible.. but can I at least pass session variables to the 2.0
site which is on another server?
response.redirect loses them.
server.transfer gives me an error about
Invalid path for child request . A virtual path is expected.
Any way to do this?
chrisrock2@gmail.com - 09 Mar 2008 05:23 GMT
On Mar 7, 4:54 pm, wild...@noclient.net wrote:
> RE: Redirect to another server and Keeping SESSION variables?
>
[quoted text clipped - 14 lines]
>
> Any way to do this?
To be honest the only way I've ever done this was writing a page to do
it manually. Something simlilar to this:
http://www.tutorialized.com/view/tutorial/ASP-Session-Transfer-across-domains/1468
The only other way I can think of is using a sql server table to
temporarily store the session when you leave server A and pick up it
on server B. Something like
1) Save session in table using the sessionid.
2) Response.Redirect("server2.com/startsession.aspx?sessionid=123421")
3) Startsession.aspx retrieves session data using Request("sessionid")
Hope you find a solution.