Project

General

Profile

« Previous | Next » 

Revision 302

Added by stefan over 18 years ago

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!

View differences:

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