New session created when moving between asps and asp pages

G

Guest

Hi,

I am currently supporting a website that is a mix of asp and aspx pages. In one scenario I redirect the user from an asp page, to an aspx page, and then back to the asp page. When I return to the asp page, I find that *sometimes* a new session has been created. (I.e., session.sessionid is different. Thus, I lose session state, etc.). The session timeout is the default of 20. What is odd, is that on one development machine (Windows 2000 Pro, IIS 5.0), this exact same code works fine. But when I migrated the site to my new development machine (Windows XP Pro, IIS 5.1) it stopped working. My guess is that it has something to do with the version of IIS, the IIS settings, or the way I have the site configured on the new machine, since the code is identical. Does anyone have any ideas?

Just to be perfectly clear, I am NOT trying to share the session state between asp and apsx. (I know they each have their own sessions.) I am referring only to the asp session object here - a new asp session is created when returning from an aspx page. Any help would be most appreciated
 
C

Cowboy \(Gregory A. Beamer\) [MVP]

Check out this URL:
http://msdn.microsoft.com/library/en-us/dnaspp/html/converttoaspnet.asp

The mechanism is different, so you will have to implement the suggestions in
the article to share session state.

sometimes* a new session has been created. (I.e., session.sessionid is
different. Thus, I lose session state, etc.). The session timeout is the
default of 20. What is odd, is that on one development machine (Windows
2000 Pro, IIS 5.0), this exact same code works fine. But when I migrated
the site to my new development machine (Windows XP Pro, IIS 5.1) it stopped
working. My guess is that it has something to do with the version of IIS,
the IIS settings, or the way I have the site configured on the new machine,
since the code is identical. Does anyone have any ideas?
Just to be perfectly clear, I am NOT trying to share the session state
between asp and apsx. (I know they each have their own sessions.) I am
referring only to the asp session object here - a new asp session is created
when returning from an aspx page. Any help would be most appreciated!
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top