New session created when moving between asps and asp pages

Discussion in 'ASP .Net' started by =?Utf-8?B?anBvcHBlcg==?=, Apr 7, 2004.

  1. 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
     
    =?Utf-8?B?anBvcHBlcg==?=, Apr 7, 2004
    #1
    1. Advertising

  2. 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.

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

    ***************************************************************
    Think outside the box!
    ***************************************************************
    "jpopper" <> wrote in message
    news:...
    > 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!
    >
     
    Cowboy \(Gregory A. Beamer\) [MVP], Apr 8, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    345
    Tim Williams
    Nov 28, 2007
  2. BARTHA CLIFTON

    PUTTING THE ASPS INTO THE TRANLOADAS

    BARTHA CLIFTON, Dec 24, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    286
    Mark Rae [MVP]
    Dec 24, 2007
  3. Lakshmi Jagarlapudi

    how to run asps on windows xp

    Lakshmi Jagarlapudi, Dec 5, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    126
    Lakshmi Jagarlapudi
    Dec 5, 2003
  4. Rob Rutherford

    How can I test ASPs?

    Rob Rutherford, Aug 23, 2003, in forum: ASP General
    Replies:
    3
    Views:
    112
    Rob Rutherford
    Aug 24, 2003
  5. BJS

    ASPs and NTFS permissions

    BJS, Jan 15, 2005, in forum: ASP General
    Replies:
    1
    Views:
    127
    Jim Morrison
    Jan 16, 2005
Loading...

Share This Page