View Full Version : Clear Sessions not logging out users
Travis250923
04-27-2009, 02:30 PM
Clear sessions not working. I set it to clear all but it doesn't log me out. I used SecurityAssist to create the log in information. The behavior has bee applied to the LogOut page and the trigger is set to before page load.
Ray Borduin
04-27-2009, 02:31 PM
It must not be clearing them for some reason. If your session is cleared you will be logged out.
Travis250923
04-30-2009, 08:19 AM
That's obvious. :) I was hoping for some direction as to why it wouldn't clear the session. I'll enter a support ticket. Thanks
Ray Borduin
04-30-2009, 09:04 AM
You could post the code you are using to clear the session and describe the page and context it is being used in and I might be able to give more information. Without details to go on it is hard to give details in a response.
Travis250923
04-30-2009, 02:26 PM
Here is the code generated by Cookies Toolkit.
<?php
if ("" == ""){
// WA_ClearSession
$clearAll = TRUE;
$clearThese = explode(",","");
if($clearAll){
foreach ($_SESSION as $key => $value){
unset($_SESSION[$key]);
}
}
else{
foreach($clearThese as $value){
unset($_SESSION[$value]);
}
}
}
?>
Ray Borduin
04-30-2009, 02:40 PM
What page is it on? Maybe it needs a session_start on top of the page so it can clear it properly?
Travis250923
05-01-2009, 06:37 AM
It is on the visitor_LogOut page and at the top of the page I added a session start but it didn't change it
Ray Borduin
05-01-2009, 06:40 AM
Did you post a support incident? What is your incident number? Somebody will have to help you debug this, I don't see why it wouldn't work.
Travis250923
05-01-2009, 07:18 AM
I haven't yet but will. Thanks
Baboosi
05-24-2009, 09:41 PM
I'm experiencing the same issue with my web site in that when the Log Out page is accessed it should be clearing the session, but doesn't. Same code as above, but with the session_start. It's Out-of-the-box code / I haven't touched it. Any thoughts on why it doesn't work?
Travis250923
05-26-2009, 10:36 AM
Are you testing local? Turns out there is something on my local machine that is causing an issue. When it is live on my host's site it works fine.
neil.batchelor254136
08-26-2009, 12:27 AM
Does this work properly in the latest Security Assist?
Thanks,
Neil
Ray Borduin
08-26-2009, 07:49 AM
It should work in all versions. I believe this was a server issue of some sort and not a problem with the securityassist code.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.