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

From: Date: Fri, 04 Dec 2009 18:13:14 +0000
Subject: note 94961 added to function.session-set-cookie-params
Groups: php.notes 
Request: Send a blank email to php-notes+get-163588@lists.php.net to get a copy of this message
REMEMBER, that if you have a multi-subdomain site, you must put the following to enable a session id on the whole website: <?php session_set_cookie_params(0, '/', '.my-page.com'); session_start(); ?> Otherwise, you'll have 2 diffrent sessions on e.g. news.my-page.com and download.my-page.com ---- Server IP: 194.24.174.37 Probable Submitter: 79.163.133.152 ---- Manual Page -- http://www.php.net/manual/en/function.session-set-cookie-params.php Edit -- https://master.php.net/note/edit/94961 Del: integrated -- https://master.php.net/note/delete/94961/integrated Del: useless -- https://master.php.net/note/delete/94961/useless Del: bad code -- https://master.php.net/note/delete/94961/bad+code Del: spam -- https://master.php.net/note/delete/94961/spam Del: non-english -- https://master.php.net/note/delete/94961/non-english Del: in docs -- https://master.php.net/note/delete/94961/in+docs Del: other reasons-- https://master.php.net/note/delete/94961 Reject -- https://master.php.net/note/reject/94961 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163588) next »