locked
how to keep same session_id after browser restarts? RRS feed

  • Question

  • User1361142914 posted

    Hi,

    Is there any way to keep session_id unchanged even if the user restarts the browser so that his session does not get lost?

     

    Kind Regards,

    Erkan ER

    Thursday, April 21, 2011 8:37 AM

Answers

  • User1361142914 posted

     <system.web>
          <sessionState timeout="99999" cookieless="false"  cookieName="dnet_sessionid"  regenerateExpiredSessionId="false" />
    </system.web>

     

    I tried this one. It worked fine in Firefox. But in IE and chrome a new session is generated! How can I stop changing session id?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 21, 2011 10:15 AM

All replies

  • User-1423995609 posted

    Refer to this link

    http://msdn.microsoft.com/en-us/library/ms178581.aspx

    Thursday, April 21, 2011 9:09 AM
  • User1361142914 posted

     <system.web>
          <sessionState timeout="99999" cookieless="false"  cookieName="dnet_sessionid"  regenerateExpiredSessionId="false" />
    </system.web>

     

    I tried this one. It worked fine in Firefox. But in IE and chrome a new session is generated! How can I stop changing session id?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 21, 2011 10:15 AM
  • User-1423995609 posted

    Are u sure cookies enabled for Chrome and IE on your PC???

    Thursday, April 21, 2011 11:18 AM
  • User1361142914 posted

    When I go into details of cookie using browsers then I see that in FF it says cookie will exists until session is ended. But in Chrome it says something like that cookie will destroyed when browser is closed. I am sure that I enabled cookies in all browsers. Anything wrong with webconfig configurations?

    Thursday, April 21, 2011 12:08 PM
  • User-1423995609 posted

    Nope nothing wrong with configurations you've posted, at least, I would configure it the same way, maybe you should start a new thread and rephrase your question.

    Thursday, April 21, 2011 12:30 PM