ezsystems/ezformtoken — pull request #1 by dpobel (2011-12-20 19:55:46+00:00)
Title: Fixed #19022: ezformtoken error if logging in frontend with DebugRedirection

(This is a review request since the review board does not know ezformtoken repository)

Issue: http://issues.ez.no/19022

A token error may occur just after a user has been authenticated because the state of the user (has a session or not and identified or not) is stored in a static variable that is not refreshed if the user logs in or logs out. This patch just removes the static variable so that ezxFormToken::shouldProtectUser() always checks the session and if the user is logged in (those operations are quite "light" and do not need to be cached in static variable IMHO).