Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > New session created when moving between asps and asp pages

Reply
Thread Tools

New session created when moving between asps and asp pages

 
 
=?Utf-8?B?anBvcHBlcg==?=
Guest
Posts: n/a
 
      04-07-2004
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

 
Reply With Quote
 
 
 
 
Cowboy \(Gregory A. Beamer\) [MVP]
Guest
Posts: n/a
 
      04-08-2004
Check out this URL:
http://msdn.microsoft.com/library/en...rttoaspnet.asp

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

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** *************
Think outside the box!
************************************************** *************
"jpopper" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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!
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Moving Estimate, Local Movers, Long Distance Moving, PackingSupplies, Storage Rental, Home Moving, Apartment Moving, Office Moving,Commercial Moving linkswanted ASP .Net 0 01-06-2008 04:45 AM
PUTTING THE ASPS INTO THE TRANLOADAS BARTHA CLIFTON ASP .Net 3 12-24-2007 03:18 PM
Pulling data from a .asps site hall.jeff@gmail.com Python 4 11-28-2007 12:26 AM
ASPs and NTFS permissions BJS ASP General 1 01-16-2005 04:46 AM
how to run asps on windows xp Lakshmi Jagarlapudi ASP .Net Web Services 0 12-05-2003 06:15 AM



Advertisments