Sessions initialized for all users
-
We’ve encountered the same issue described in Early session initialization:
Session initialization happens too early in this plug-in. It sets a cookie for every user regardless of whether they need to log in or not.
https://plugins.trac.ww.wp.xz.cn/browser/wp-cassify/tags/2.0.4/classes/wp_cassify_plugin.php#L140
This line binds the “wp_cassify_session_start” action to “init”, when it should probably be bound to “wp_authenticate”.
Starting a session for every user makes caching difficult.
With the 2.2.5 release it hooks into wp_loaded, but that still fires for all users regardless of whether they’re logging in or logged-in. See https://serverfault.com/a/979915 for more about PHP sessions and caching. I tried swapping in wp_authenticate for wp_loaded and auth seemed to work, but the ticket stayed in the address bar so something wasn’t right.
The topic ‘Sessions initialized for all users’ is closed to new replies.