Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Redirect to another server and Keeping SESSION variables?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
wildman@noclient.net - 07 Mar 2008 21:54 GMT
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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.