Session TimeOut

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ranjith2518
    New Member
    • Sep 2016
    • 1

    Session TimeOut

    Right now i am using the below code in web.config file to maintain session timeout.
    Code:
    <authentication mode="Forms">
          <forms loginUrl="index.aspx" name=".ASPXFORMSAUTH" timeout="1" protection="All" slidingExpiration="true"/>
        </authentication>
    
    <sessionState mode="InProc" cookieless="false" timeout="1"/>
    This code fine.it works..

    But the problem is,if session timeout expires(tat is after 1 minute) it will not automatically redirect to my loginurl-"index.aspx " i need to suppose to click any of the button in my web page then only it redirects to loginurl.

    i need to redirect my page automatically to loginurl without any click or mouseover().

    Thanks in advance.
    Hope you help!
Working...