Changes

Jump to: navigation, search

Pandora - Sample - Validate User Session

435 bytes added, 16:39, 3 December 2012
no edit summary
<script language="javaScript">
// savefunc is called on most pages within SmartSimple at the time that the page is saved, saved draft or submitted.
function savefunc(frm){
//the next line passes the userid of the user that loaded the page to the confirmusersession function. // it cancels the save and has an error alert message if the user session no longer exists, or has been taken over by a different user. if (!confirmusersession('@me.userid@')) { alert('You are no longer logged in, or your login session has been replaced by another user account\n\nPlease open a new window or tab, log back in and re-submit this form'); return false; }
return true;
}
</pre>
 
==See Also==
* [[Pandora - Current User’s Information]]
[[Category:Pandora]]
0
edits

Navigation menu