note 80145 added to function.setcookie

From: Date: Mon, 31 Dec 2007 13:40:58 +0000
Subject: note 80145 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-134625@lists.php.net to get a copy of this message
<? 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\' apllied to be set. try to refresh'; } ?> Why when i restart browser the cookie session is not deleting? It always shows me: The Login The Password, after the first session set... ---- Server IP: 81.94.227.69 Probable Submitter: 217.199.107.201 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/80145 Del: integrated -- https://master.php.net/note/delete/80145/integrated Del: useless -- https://master.php.net/note/delete/80145/useless Del: bad code -- https://master.php.net/note/delete/80145/bad+code Del: spam -- https://master.php.net/note/delete/80145/spam Del: non-english -- https://master.php.net/note/delete/80145/non-english Del: in docs -- https://master.php.net/note/delete/80145/in+docs Del: other reasons-- https://master.php.net/note/delete/80145 Reject -- https://master.php.net/note/reject/80145 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134625) next »