note 109126 added to function.session-set-cookie-params
| From: | passerbyxp at gmail dot com | Date: | Fri, 22 Jun 2012 07:50:18 +0000 |
| Subject: | note 109126 added to function.session-set-cookie-params | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-188744@lists.php.net to get a copy of this message | ||
One might want to be noted that the browsers are case-sensitive to the $path parameter.
For example, if you do this:
<?php
session_set_cookie_params(0,"/webapp/");
session_start();
?>
and you visit your site in this way:
domain.com/WebApp/
You would get a new session on every request.
I'm not sure if this is the standard, but I see this happens on IE 6, Firefox 12 (Palemoon,
actually), Chrome 19 (Portable version), and on both IIS and Apache.
----
Server IP: 69.147.83.197
Probable Submitter: 203.98.176.247
----
Manual Page -- http://www.php.net/manual/en/function.session-set-cookie-params.php
Edit -- https://master.php.net/note/edit/109126
Del: integrated -- https://master.php.net/note/delete/109126/integrated
Del: useless -- https://master.php.net/note/delete/109126/useless
Del: bad code -- https://master.php.net/note/delete/109126/bad+code
Del: spam -- https://master.php.net/note/delete/109126/spam
Del: non-english -- https://master.php.net/note/delete/109126/non-english
Del: in docs -- https://master.php.net/note/delete/109126/in+docs
Del: other reasons-- https://master.php.net/note/delete/109126
Reject -- https://master.php.net/note/reject/109126
Search -- https://master.php.net/manage/user-notes.php