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

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

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. =?Utf-8?B?TXJHaWdhIChSb2JiIFNhZGxlcik=?=

    new session created when changing pages

    =?Utf-8?B?TXJHaWdhIChSb2JiIFNhZGxlcik=?=, May 30, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    516
    =?Utf-8?B?TXJHaWdhIChSb2JiIFNhZGxlcik=?=
    May 30, 2005
  2. =?Utf-8?B?Z2xlbm4=?=

    Session variable is lost between ASP & ASP.NET pages

    =?Utf-8?B?Z2xlbm4=?=, Mar 28, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    1,515
    Juan T. Llibre
    Mar 28, 2006
  3. archana
    Replies:
    0
    Views:
    529
    archana
    Mar 13, 2007
  4. Replies:
    4
    Views:
    487
    Tim Williams
    Nov 28, 2007
  5. linkswanted
    Replies:
    0
    Views:
    832
    linkswanted
    Jan 24, 2008
  6. AJ
    Replies:
    0
    Views:
    174
  7. Jazzis
    Replies:
    2
    Views:
    435
    Jazzis
    Sep 23, 2003
  8. BJS

    ASPs and NTFS permissions

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