Difference between revisions of "Remove Second Message on Timeout"

From SDU
Jump to: navigation, search
(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:
== 'Remove Second Message on USD Timeout'==
+
__NOTOC__
 +
[[Category:Customizations]]
 +
[[Category:r11]]
 +
{{Global Header}}
 +
{{Global Announcement}}
  
When Service Desk web sessions timeout, or its shows a timeout related message. After you hit OK, to the first alert message, you see a  
+
== 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 unnessary as the first message clearly states about the timeout info.
+
Many users started complaining that the second message is unnecessary.
  
To remove this second alert message, do the following:
 
  
'''Step 1:'''
+
== Procedures ==
Open sitemods.js via Web screen painter
+
=== Step 1. Edit sitemods.js ===
 
+
Via the [[Web Screen Painter]] append the following code in the end of sitemods.js
'''Step 2:'''
+
Append the below 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 3:'''
+
=== Step 2. Clear the web cache ===
Save and Publish
+
{{R11 Clear Cache}}
  
'''Step 4:'''
+
=== Step 3. Clear browser cache ===
 
Clear your browser cache
 
Clear your browser cache

Latest revision as of 13:09, 26 September 2008

To make corrections or additions to this article, select the edit tab above.
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