note 109126 modified in function.session-set-cookie-params by danbrown
| From: | danbrown@php.net | Date: | Tue, 26 Jun 2012 13:58:40 +0000 |
| Subject: | note 109126 modified in function.session-set-cookie-params by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188839@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: example.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.
--was--
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.
http://php.net/manual/en/function.session-set-cookie-params.php