Does anyone know how to destroy the Zfcuser session variable?
If certain events occur I would like to end the session?
I checked the wiki and the only discussion is about setting automatic timeout. I would like to destroy the session manually.
Does anyone know how to destroy the Zfcuser session variable?
If certain events occur I would like to end the session?
I checked the wiki and the only discussion is about setting automatic timeout. I would like to destroy the session manually.
If you are going for a general logout function
session_destroy();
should suffice, otherwise just useunset($_SESSION['zfcuser']);