Session start event fired on every request RRS feed

  • Question

  • User926774473 posted


    Why session start event in global.asax file gets fired on every request.when i click on asp menu control session start event fires this should not to be happened.

    any help will be appreciated.

    Thursday, August 27, 2015 12:42 AM

All replies

  • User571301025 posted

    What is the timeout minutes you have set in the "Web.config" file? By default it given by 20 minutes.

          timeout="30" />

    Seems that for every click, the session id expires and the new session id created. In order to check the session id you can include the below line, under the menu item click event or page load event:

    string sessionId = System.Web.HttpContext.Current.Session.SessionID;

    The values you get should be same for all the menu item click.
    Hope this helps!

    Thursday, August 27, 2015 1:30 AM
  • User926774473 posted

    Thanks for your reply.

    I got the solution i removed the below tag in web.config file

    <httpCookies httpOnlyCookies="true" requireSSL="true" lockItem="true"/>

    Thursday, August 27, 2015 2:10 AM