Revision #13 has been created by le_top on Apr 1, 2015, 11:16:48 PM with the memo:
formatting of "test case"
« previous (#12)
Changes
Title
unchanged
Checking for "expired" sessions/logins on the client side
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
csrf, login, cookie, UserIdentity, user auth, security, session, allowAutoLogin, Cache-Control
Content
changed
[...]
In the proposed methods, the popups are modal to force the user to reload or close the page.
You should use your own CWebUser subclass as indicated below for full functionnality.
I haven't set up a test case to demonstrate the issue, but the following procedure should demonstrate the issue:
- Open a web page in your browser with a form relying on the YII_CSRF_TOKEN for submitting the data.
- Close the browser (with the reopen tabs functionnality active);
- Reopen the browser -> your form page should appear.
- Try to submit the form - submission should not work (if your browser did not reload the page).[...]