07-02-2009, 08:04
|
|
|
|
חבר מתאריך: 13.05.07
הודעות: 549
|
|
מחיקת cookie לא עובד ב ff
האם יש הגיון שהקוד הנ"ל עובד ב ie וב ff לא
קוד PHP:
<?php $ip=$_SERVER['REMOTE_ADDR']; session_start(); //Killing the cookie: $cookie_name="user";
//here we assign a "0" value to the cookie, i.e. disabling the cookie: $cookie_value="0";
//When deleting a cookie you should assure that the expiration date is in the past, //to trigger the removal mechanism in your browser. $cookie_expire=time()-60;
$cookie_domain="www.mysite.com/home/"; setcookie($cookie_name, $cookie_value, $cookie_expire, "/", $cookie_domain,0);
//re-direct to login screen (or any other you like): header( "Location:http://www.mysite.com"); exit; ?>
_____________________________________
|