note 80146 added to function.session-set-cookie-params

From: Date: Mon, 31 Dec 2007 13:49:10 +0000
Subject: note 80146 added to function.session-set-cookie-params
Groups: php.notes 
Request: Send a blank email to php-notes+get-134626@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\'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.... ? ---- Server IP: 195.54.192.44 Probable Submitter: 217.199.107.201 ---- Manual Page -- http://www.php.net/manual/en/function.session-set-cookie-params.php Edit -- https://master.php.net/note/edit/80146 Del: integrated -- https://master.php.net/note/delete/80146/integrated Del: useless -- https://master.php.net/note/delete/80146/useless Del: bad code -- https://master.php.net/note/delete/80146/bad+code Del: spam -- https://master.php.net/note/delete/80146/spam Del: non-english -- https://master.php.net/note/delete/80146/non-english Del: in docs -- https://master.php.net/note/delete/80146/in+docs Del: other reasons-- https://master.php.net/note/delete/80146 Reject -- https://master.php.net/note/reject/80146 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#134626) next »