The session is expired in 10seconds... though i increase my session time out to 1440

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dharmesh245
    New Member
    • Feb 2014
    • 1

    The session is expired in 10seconds... though i increase my session time out to 1440

    In my website after i logged in the webpage is redirected to logic page after 10 sec.... i checked all my web.config file and i increase session time out to 1440 but still the problem can't be solve... so please help me to solve out...
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    How do you know your session has expired after 10 seconds?
    What steps did you take to produce the problem?
    How are you setting session?
    Are you in a web farm/garden environment?

    -Frinny

    Comment

    • ZeeshanAli
      New Member
      • Aug 2014
      • 3

      #3
      Set the session state in your web.config and increase the timeout value.
      <sessionState timeout="20"></sessionState>

      Also check the cookie expriy timeout.

      <system.web>
      <authenticati on mode="Forms">
      <forms loginUrl="Login .aspx"
      protection="All "
      timeout="30"
      name=".ASPXAUTH "
      path="/"
      requireSSL="fal se"
      slidingExpirati on="true"
      defaultUrl="def ault.aspx"
      cookieless="Use DeviceProfile"
      enableCrossAppR edirects="false " />
      </authentication>
      </system.web>

      if Session times out before the Authentication cookie - they are still authenticated, but all their session variables disappear, and may cause errors in your website if you are not disciplined in checking for nulls and other conditions brought about by missing session.

      If Authentication times out before the session, then all their session variables will still exist, but they won't be able to access protected resources until they log back in again.

      Comment

      Working...