Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 2nd, 2004, 11:58 AM
Registered User
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Switching between ASP.Net and ASP sites

I need to go from one site that we host at one ip address to another site, that we host on a different IP address. The site I am working on is in .Net, while the other site uses ASP. If I have a session variable when I do a redirect to the second site, and the client gets redirected back to my site, is the session variable still there and valid/useful or do I have to recreate all the data in the variable?

Old April 2nd, 2004, 12:18 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts

You might try cookies because asp and asp.net use two different engines (for lack of a better word).

Old April 3rd, 2004, 11:00 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

The session data in each environment will be maintained under the rules of that environment. I.e., the default for IIS is a 20 minute timeout for the session. Each server will maintain its associated session for that amount of time regardless of how much switching back and forth between the servers you do. As long as each is hit within the timeout period each session will be maintained.

Of course, because you are going between 2 different servers you can't share session information so you will need to handle any data handoffs between servers in order to keep all the necessary data consistant.

Work smarter, not harder.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosting Asp.net 3.5 sites newbreed65 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 August 21st, 2008 11:17 PM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
Porting a sa,ple ASP CR viewer app to ASP.NET jhansen42 Crystal Reports 0 August 29th, 2003 10:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.