[TYPO3-core] RFC #17378: The ExtDirect token needs to be regenerated after relogin by popup window (revisited)

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri Jan 28 10:39:23 CET 2011


Hi,

This is a SVN patch request.

Type: Bugfix

BT reference: http://bugs.typo3.org/view.php?id=17378

Branches: trunk, 4_5

Problem:
After "relogin", all extdirect requests to the backend no longer work
(context menus no loading, pagetree not responding and several errors
popping up in the debug panel).

This had been fixed before (for RC1 = #17203), but was later broken
again (with the introduction of the performance improvements in RC2 =
#17284).

Notes:
This fix doesn't help for any open FORM (no ExtDirect) that you have on
the page. I.e. if you are editing a content element, and you "relogin"
(with the popup or the dialog relogin), you won't be able to save your
work. This will require some extra work.

Solution:
Persist the tokens created during the ajax relogin.

How to test:

1) Set:
$TYPO3_CONF_VARS['BE']['sessionTimeout'] = '150';
(so that the relogin window pops up sooner and you don't have to wait
one hour)

2) Leave the backend logged in and open. Wait for the 30secs timer to
complete

3) Relogin with your password

4) Click in the Pagetree, Context Menus and see if they still work
(before the patch they don't, after the patch they do)

Cheers,
Ernesto


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 17378.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20110128/6cecf993/attachment.asc>


More information about the TYPO3-team-core mailing list