« Previous Next »

Thread: ASP Session lost in IIS 7

Last post 10-23-2009 11:14 AM by neildt. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-13-2009, 6:56 AM

    ASP Session lost in IIS 7

    Hi to all New to this forum I have shifted my hosting server to a new one. The new server have IIS7 installed. My pages lost the session values while moving from one page to other. I have checked my scripts, session names are not conflicting to each other. The site is running fine at my local machine where I have IIS6 installed. Can someone help me to combat this problem?
  • 10-15-2009, 4:59 AM In reply to

    Re: ASP Session lost in IIS 7

    Hi,

    Please make sure cookie is enabled on the client machine(IE->Tools->Internet Options->Privacy->Advanced).

     Also, application pool recycle will cause session lost. You can enable application pool recycle logging to check if this issue caused by application pool recycle.

    IIS 7.0 - Application Pool Recycles - Log a event in Windows Event Log http://blogs.iis.net/ganekar/archive/2008/12/12/iis-7-0-application-pool-recycles-log-a-event-in-windows-event-log.aspx

    If your problem persists, could you please post a simple project for us to reproduce this issue.

     

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 10-23-2009, 11:14 AM In reply to

    • neildt
    • Top 500 Contributor
    • Joined on 08-07-2006, 1:35 PM
    • Posts 16

    Re: ASP Session lost in IIS 7

    I experienced similar problems when going between http and https web pages. In IIS7 there is a new feature/option called "new id on secure connection". I set mine to False and all classic ASP pages work fine. Also, I set the Application pool to Classic and .NET framework to "No managed code". More information can be found at http://wiki.earlyimpact.com/developers/timeout-issues and http://technet.microsoft.com/en-us/library/cc731782.aspx Cheers Neil
Page 1 of 1 (3 items)
Microsoft Communities