I recently found plugins having session-handling code and wonder if this is the way to do?
Most of the time it was sufficient to comment out the calls to get those plugins to work (e.g. database2). Maybe this code is from ancient DW versions, where a global session-handling was not implemented?!
Well, my question is more generic: How should session-data be implemented, when a plugin needs to keep state over several calls or whilst login of user?
I found this information, in an other plugin:
Start session customization
(Available since release 2014-05-05 “Ponder Stibbons”)
Dokuwiki starts (in inc/init.php) a session prior to the plugins.
Is there a developer note about how to permanently (for the time of the browser lifetime) store data in session, or has this to be done by other techniques?