Timeout setting and pop up saving message
Posted on 2011-10-31
I need to set my application timeout to 1 hour. I did some reseach.
I set <sessionState timeout="1"/> inside <system.web> in web.config file. It's not working.
I added Session.Timeout = 1 in Session_Start fucntion in Global.asax file. It's still not working.
Then I added <meta http-equiv="Refresh" content="360; URL=Login.aspx" /> in the Master Page, it worked.
But I need to pop up a message asking the user to save data when timeout is reaching. If the user has selected ok button of the message box, the page data will be saved and the time for timeout is reset to 0.
How can I implement this? Please help. Thanks.