Destroy session when redirect
Notice: This thread is very old.
- soundake
- Member | 24
I wrote simple session handler for storing sessions to database.
In bootstrap.php I have:
<?php
/* @var $session \Nette\Http\Session */
$session = $container->getService('session');
$session->setHandler(new \Soundake\SessionHandler());
$session->start();
?>
This is ok, session is started, created and stay active. Login is working, transfer between pages is working too.
But, when I use anywhere in presenter $this->redirect, than “destroy session” is executed and it is created new session and I loose old one.
Do you know, where is the problem?
Thx a lot.