The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

why the session opration in the class Slim\Http\Util not in the class Slim\Middleware\SessionCookie

coder5's Avatar

coder5

08 May, 2015 09:42 AM

in Slim\Middleware\SessionCookie there also have the code:
session_set_save_handler(
            array($this, 'open'),
            array($this, 'close'),
            array($this, 'read'),
            array($this, 'write'),
            array($this, 'destroy'),
            array($this, 'gc')
        );

but why invoke \Slim\Http\Util::serializeCookies

i mean why the method \Slim\Http\Util::serializeCookies is not the handle of session_set_save_handler ?
thanks

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac