codeguy/Slim — Issue #244: Make session startup optional and lazy-loaded
Author: DrBenton
Created: 2012-02-15 09:23:43+00:00
State: open

Hi !

I appreciate the Slim framework a lot, but I would like to be able to start the session process only if I need it, instead of starting it for every request.
Do you think it would be possible to start the Session process only when the developer requests it ? For exemple, via a ```$mySlimInstance->session()``` accessor, with a bit of lazy-loading ? The first time it would be used during the Slim app lifecycle, the session process would be started and the session data would be returned, then it would return just a pointer to the session data.
Would you agree such a process ?