note 80146 deleted from function.session-set-cookie-params by ezyang

From: Date: Mon, 31 Dec 2007 17:29:53 +0000
Subject: note 80146 deleted from function.session-set-cookie-params by ezyang
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134632@lists.php.net to get a copy of this message
Note Submitter: volkk at inbox dot lv Reason: useless ---- <? session_set_cookie_params(0); session_name('SessionID'); session_start(); if (isset($_COOKIE['SessionID'])) { echo $_SESSION['userlogin'] . ' ' . $_SESSION['userpass']; } else { $_SESSION['userlogin'] = 'The Login'; $_SESSION['userpass'] = 'The Password'; echo 'value was unset, now it\'s applied to be set. try to refresh'; } ?> Why does the cookie isn't deleting after i close the browser? Every time, when i restart my browser and navigate the page i see: The Login The Password.... ?

« previous php.notes (#134632) next »