This simple code will help you track the session time out. It can be done with the combination of formula language and this HTML code.
- Get the session time out period value from names.nsf from your server and store that value in a field.
- Put the following HTML code into the HTML header. The value '3600' that I mention below is one hour, hard-coded. Here you can specify the field names which are getting session time out period multiplied with seconds. Remember, one hour is '3600' seconds.
- If you want to automatically save before time out, then call a save agent instead of the form. But set the timeout one or two minutes earlier. (So minus the field value with 120 seconds after getting the value from names.nsf.)
"[<META HTTP-EQUIV="Refresh" CONTENT="3600; URL=/"+ThisDBW+"/Timeout? OpenForm">]"
Do you have comments on this tip? Let us know.
This tip was submitted to the SearchDomino.com tip exchange by member Prasad. Please let others know how useful it is via the rating scale below. Do you have a useful Notes/Domino tip or code to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.