Redirect to another server and Keeping SESSION variables?

W

wildman

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?
 
C

chrisrock2

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?

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top