I would like to store some data in the user's session specifically for when they're logged in. When logged out, I would like the session to destruct. Trawling through the code, it seems that session destruction is forced to false on logout.
yiilite framework:
public function logout($destroySession=true)
Craft UsersController
:
public function actionLogout()
{
craft()->userSession->logout(false);
....
I'm using the following in Craft config to force logouts and expiration after a certain amount of time, but the session doesn't get destroyed until the browser is closed.
'userSessionDuration'=>'PT20M',
'rememberedUserSessionDuration' => false,
Is there something I'm missing here, or do I have to override the event and clear the session variables myself?