how to redirect user to default page on session time out in asp.net 3.5

后端 未结 4 1589
[愿得一人]
[愿得一人] 2021-01-21 03:53

i just want to redirect user to Home Page(Default.aspx) when session has been expired in asp.net 3.5. i just do it with web user control but steel it\'s not work perfectly. so i

4条回答
  •  时光说笑
    2021-01-21 04:21

    If you are using form authentication then you don't have to write any custom code. For session timeout settings are provided by Framework itself. Just change the configuration file as mentioned below :

    
        
    
    

    Above configuration will redirect user to the login page when session expires.

提交回复
热议问题