Revision 302
Added by stefan over 19 years ago
| 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; |
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!