How to handel Session Timeout
-
-
Hi, There is a requirement in my FBA(Form based authentication) based ASP.NET application to handel session timeout. After session timeout if user clicks any link or button it should return to Login page. I am using Master page also. Thanks in advance.
Elena2006 wrote:
After session timeout if user clicks any link or button it should return to Login page. I am using Master page also.
You need to check the session value on every page load. if this value is null redirect user to login page,
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Hi, There is a requirement in my FBA(Form based authentication) based ASP.NET application to handel session timeout. After session timeout if user clicks any link or button it should return to Login page. I am using Master page also. Thanks in advance.
Keep Session timeout in web .config file.It automatically handles session timeout value..! Check the below settings ,Check sessiontomeout..!
<system.web>
<authentication mode="Forms">
<forms loginUrl="Login.aspx"
protection="All"
timeout="30"
name=".ASPXAUTH"
path="/"
requireSSL="false"
slidingExpiration="true"
defaultUrl="default.aspx"
cookieless="UseDeviceProfile"
enableCrossAppRedirects="false" />
</authentication>
</system.web>LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
-
Hi, There is a requirement in my FBA(Form based authentication) based ASP.NET application to handel session timeout. After session timeout if user clicks any link or button it should return to Login page. I am using Master page also. Thanks in advance.