note 109126 modified in function.session-set-cookie-params by danbrown

From: 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.&#13;&#10;&#13;&#10;For example, if you do this:&#13;&#10;&#60;?php&#13;&#10;session_set_cookie_params(0,&#34;/webapp/&#34;);&#13;&#10;session_start();&#13;&#10;?&#62;&#13;&#10;&#13;&#10;and you visit your site in this way:&#13;&#10;example.com/WebApp/&#13;&#10;&#13;&#10;You would get a new session on every request.&#13;&#10;&#13;&#10;I&#39;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

« previous php.notes (#188839) next »