Changes

Pandora - Sample - Validate User Session

21 bytes added, 19:58, 23 July 2010
no edit summary
//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