Logging out users
I used security assist to define my rules and now trying to logout users using simple php logout script, but doesn't work, any one with solution out there?
I used security assist to define my rules and now trying to logout users using simple php logout script, but doesn't work, any one with solution out there?
can you send a copy of your page and the logout script?
I've the same problem....I've generated the LogOut page form the Security Assist wizard, but without a script in the page how should it work?
This is the generated page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Log Out</title>
<link href="../WA_SecurityAssist/styles/Refined_Pacifica.css" rel="stylesheet" type="text/css" />
<link href="../WA_SecurityAssist/styles/Arial.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="LogOutContainer" class="WAATK">
<h1>Log Out</h1>
You have successfully logged out. </div>
</body>
</html>
No scripts, css only....
the security assist logout page uses the Clear Session Value behavior from Cookies toolkit, if cookies toolkit is not installed, the clear session value code may not be added to the page.
add the following at line 1 of the logout page:
<?php
if (!isset($_SESSION)) {
session_start();
}
?><?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]);
}
}
}
?>
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.