Difference between revisions of "Remove Second Message on Timeout"
(Remove Second Message on USD session Timeout) |
m (→'Remove Second Message on USD Timeout') |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | + | __NOTOC__ | |
| + | [[Category:Customizations]] | ||
| + | [[Category:r11]] | ||
| + | {{Global Header}} | ||
| + | {{Global Announcement}} | ||
| − | + | == Overview == | |
| − | second message | + | This article provides instructions for disabling the second message that is generated when a timeout occurs. After selecting OK, to the first alert message, a second message appears. |
'''Sorry, your session has already timed out. Please login again''' | '''Sorry, your session has already timed out. Please login again''' | ||
| Line 10: | Line 14: | ||
'''Timeout reset - your session will continue until logout or %1 more minutes of inactivity''' | '''Timeout reset - your session will continue until logout or %1 more minutes of inactivity''' | ||
| − | Many users started complaining that the second message is | + | Many users started complaining that the second message is unnecessary. |
| − | |||
| − | + | == Procedures == | |
| − | + | === Step 1. Edit sitemods.js === | |
| − | + | Via the [[Web Screen Painter]] append the following code in the end of sitemods.js | |
| − | + | ||
| − | + | ||
In the below code, we are basically commenting the second alert message that's displayed during session timeout. | In the below code, we are basically commenting the second alert message that's displayed during session timeout. | ||
| − | + | <source lang="javascript">function timeoutResetResponse(success) | |
| − | + | ||
| − | function timeoutResetResponse(success) | + | |
{ | { | ||
if ( success ) { | if ( success ) { | ||
| Line 33: | Line 32: | ||
window.location.href = cfgCgi; | window.location.href = cfgCgi; | ||
} | } | ||
| − | } | + | }</source> |
| − | + | ||
| − | + | ||
| − | + | === Step 2. Clear the web cache === | |
| − | + | {{R11 Clear Cache}} | |
| − | + | === Step 3. Clear browser cache === | |
Clear your browser cache | Clear your browser cache | ||
Latest revision as of 13:09, 26 September 2008
To discuss or ask questions about this article, select the discussion tab above.
Overview
This article provides instructions for disabling the second message that is generated when a timeout occurs. After selecting OK, to the first alert message, a second message appears.
Sorry, your session has already timed out. Please login again
or
Timeout reset - your session will continue until logout or %1 more minutes of inactivity
Many users started complaining that the second message is unnecessary.
Procedures
Step 1. Edit sitemods.js
Via the Web Screen Painter append the following code in the end of sitemods.js
In the below code, we are basically commenting the second alert message that's displayed during session timeout. <source lang="javascript">function timeoutResetResponse(success) {
if ( success ) {
setTimeoutWarning(0);
//alertmsg(845, propTimeout); // Timeout reset...%1 minutes of inactivity
}
else {
//alertmsg(844); // Sorry, your session has already timed out
window.location.href = cfgCgi;
}
}</source>
Step 2. Clear the web cache
The final step is to clear Service Desk's cache. Publish your changes via the Web Screen Painter. The process of publishing automatically initiates a pdm_webcache.
Step 3. Clear browser cache
Clear your browser cache