Welcome Guest, Not a member yet? Register   Sign In
Where is the best place to read a cookie and set session variables???
#3

[eluser]Daniel Eriksson[/eluser]
I have my own session handling library that is mostly just a thin wrapper on top of native PHP sessions (set, get, clear/unset, destroy, ...). In addition to the wrapper functions it also has a contructor that does session_start() and sets everything up, including "remember me" functionality, if it's a new session.

The library is loaded early through autoload.php, so by the time the controller is called the session is already fully set up and populated with suitable data (like userid, credentials, ...).


Messages In This Thread
Where is the best place to read a cookie and set session variables??? - by El Forum - 06-13-2008, 02:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB