Revision 302
Added by stefan almost 19 years ago
trunk/wb/admin/logout/index.php | ||
---|---|---|
26 | 26 |
require("../../config.php"); |
27 | 27 |
|
28 | 28 |
if(isset($_COOKIE['REMEMBER_KEY'])) { |
29 |
setcookie('REMEMBER_KEY', '', time()+60*60*24*30, '/');
|
|
29 |
setcookie('REMEMBER_KEY', '', time()-3600, '/');
|
|
30 | 30 |
} |
31 | 31 |
|
32 | 32 |
$_SESSION['USER_ID'] = null; |
trunk/wb/account/logout.php | ||
---|---|---|
25 | 25 |
|
26 | 26 |
require("../config.php"); |
27 | 27 |
|
28 |
if(isset($_COOKIE['REMEMBER_KEY'])) { |
|
29 |
setcookie('REMEMBER_KEY', '', time()-3600, '/'); |
|
30 |
} |
|
31 |
|
|
28 | 32 |
$_SESSION['USER_ID'] = null; |
29 | 33 |
$_SESSION['GROUP_ID'] = null; |
30 | 34 |
$_SESSION['USERNAME'] = null; |
Also available in: Unified diff
Ticket #126. Cookie REMEMBER_KEY wasn't cleared in account/logout and expiration date is now set to time in the past. Thanks to alex!