note 88613 added to ref.session

From: Date: Sat, 31 Jan 2009 18:43:36 +0000
Subject: note 88613 added to ref.session
Groups: php.notes 
Request: Send a blank email to php-notes+get-150044@lists.php.net to get a copy of this message
@LaurentT Your solution appears rather complicated. Because sessions use cookies, it appears easier to use the cookie property that it can be only used on a specific path (subdir) of a domain. The function 'session_set_cookie_params' can do this for you and appears to work in my case. Code then looks like: 3 session_set_cookie_params(3600,'/en/'); 4 session_start(); ---- Server IP: 89.248.170.61 Probable Submitter: 80.101.97.5 ---- Manual Page -- http://www.php.net/manual/en/ref.session.php Edit -- https://master.php.net/note/edit/88613 Del: integrated -- https://master.php.net/note/delete/88613/integrated Del: useless -- https://master.php.net/note/delete/88613/useless Del: bad code -- https://master.php.net/note/delete/88613/bad+code Del: spam -- https://master.php.net/note/delete/88613/spam Del: non-english -- https://master.php.net/note/delete/88613/non-english Del: in docs -- https://master.php.net/note/delete/88613/in+docs Del: other reasons-- https://master.php.net/note/delete/88613 Reject -- https://master.php.net/note/reject/88613 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150044) next »