?
Solved

Timeout setting and pop up saving message

Posted on 2011-10-31
7
Medium Priority
?
190 Views
Last Modified: 2012-05-12
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.
0
Comment
Question by:minglelinch
  • 4
  • 3
7 Comments
 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 37058613
If your working with AJAX  you need to check the TimeOut of the script also because will timeout at 30 sec too
0
 
LVL 1

Author Comment

by:minglelinch
ID: 37058673
How and where please ... Thanks.
0
 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 37059047
Are you rpogaming on VS2010 or VS2008?
Check the control ScriptManager that you add to the page, the property AsyncPostBackTimeout (for VS2008)
0
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 37059062
On 2010 Will be equal and you can set the AsyncPostBackErrorMessage too
0
 
LVL 1

Author Comment

by:minglelinch
ID: 37059601
Thanks for posting. I can use the property to set timeout, but I also need to pop up a message asking for saving. A user should be able to save the page and reset the time for timeout. How can I implement this part?  
0
 
LVL 13

Accepted Solution

by:
Jesus Rodriguez earned 1500 total points
ID: 37059843
You can Use the Ajax modalpopup extender and set a timer, Check this links

http://forums.asp.net/p/1264217/2381773.aspx
http://forums.asp.net/t/1652305.aspx
0
 
LVL 1

Author Comment

by:minglelinch
ID: 37076312
Thanks for the informative link. I tried the first link above, but I'm not sure the cc1 in the example. I replace it with AjaxScriptManager, or I still use cc1 after adding <%@ Register Assembly="AjaxScriptManager" Namespace="AjaxScriptManager" TagPrefix="cc1" %>
I still got Unknown server tag cc1:ModalPopupExtender. Same if I use ajaxToolkit.

I think mt questions now is what package should I use for ModalPopupExtender. Thanks.
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question