or Create a profile
13 May, 2013 08:39 PM
I am trying to set a Session value using the super global $_SESSION in a middleware but it doesn't get set and saved.
I have invoked the Slim\Midddleware\SessionCookie after my custom middleware. I am basically setting a flag $_SESSION['flag'] = true and redirecting using $this->app->redirect('/'). after the redirect he session is still empty.
I have put var_exports in my middleware and the session middleware around the calls to load and session and get the following output:
// loading session debug message
// my middleware debug message
// saving session debug message
Any ideas where i might be going wrong?
Showing page 3 out of 3.
View the first page
on 27 Sep, 2017 02:16 AM
These cooks will help you in making today's dinner.
on 27 Sep, 2017 02:28 AM
Formatting help /
(switch to plain text)
(switch to Markdown)
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.
A conversation has been started with the Slim Framework for PHP 5 staff to resolve this discussion.
This discussion is private.
Only you and Slim Framework for PHP 5 support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.