session.use_cookies and session.use_only_cookies
| From: | Yasuo Ohgaki | Date: | Thu, 29 Mar 2012 09:13:51 +0000 |
| Subject: | session.use_cookies and session.use_only_cookies | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-59199@lists.php.net to get a copy of this message | ||
Hi,
While I was testing strict session, I noticed that there
is a problem in current session module behavior.
From the manual
----
session.use_cookies specifies whether the module will use cookies to
store the session id on the client side. Defaults to 1 (enabled).
session.use_only_cookies specifies whether the module will only use
cookies to store the session id on the client side. Enabling this
setting prevents attacks involved passing session ids in URLs. This
setting was added in PHP 4.3.0. Defaults to 1 (enabled) since PHP
5.3.0.
----
When "session.use_only_cookie=off", "session.use_trans_sid=on"
should be effective.
However, to make "session.use_trans_sid=on" effective, PHP 5.4
(maybe 5.3, too) requires "session.use_cookie=off". This behavior
makes "session.use_only_cookie" setting useless.
Since cookie is mandatory for secure web applications, this behavior
is not good for applications that need both cookie and URL based
session, too.
There are many mobile devices that do not support cookie still, so I
would like to fix this issue.
Is there any comment?
--
Yasuo Ohgaki
yohgaki@ohgaki.net