Changes

Jump to: navigation, search

Pandora - Sample - Validate User Session

355 bytes added, 19:58, 23 July 2010
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;
0
edits

Navigation menu