Set expiration for nette-browser cookie
Notice: This thread is very old.
- joska
- Member | 20
Hello,
is there a way to set expiration date for nette-browser cookie without changing the Nette\Http object?
I understand that it is somewhat pointless since it's doing no harm, but one of our projects is required to meet strict corporate standards which allow only specific session cookies to exists without the Expire tag.
While we are trying to get exception for this case, any ideas how to achieve this?
Thank you.
- David Grudl
- Nette Core | 8218
You can delete cookie via
$httpResponse->deleteCookie('nette-browser')
after session is
started.