Bug #15110 Updated: session_start()
| From: | yohgaki@php.net | Date: | Thu, 07 Feb 2002 00:58:30 +0000 |
| Subject: | Bug #15110 Updated: session_start() | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-79439@lists.php.net to get a copy of this message | ||
ID: 15110
Updated by: yohgaki@php.net
Reported By: fabian@ahrberg.se
-Status: Feedback
+Status: Open
-Bug Type: Session related
+Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.1.1
New Comment:
I would say it's a design. As you said, it does not make any sense
store session does not have any value.
I make this report to documentation problem, since this behavior is
better to be documented.
Previous Comments:
------------------------------------------------------------------------
[2002-02-06 15:32:04] shiflett@php.net
Do any of the PHP developers know if this is intended behavior? It
sounds like something that might have been "improved" since sessions
were first introduced, so the unnecessary overhead of storing session
information with no associated data was removed. It sounds like a good
idea to me (the current implementation).
Anyway, this bug is still listed as feedback and needs to either be
closed or reopened.
------------------------------------------------------------------------
[2002-01-19 08:03:11] fabian@ahrberg.se
Register_globals is on.
This is what it used to be:
session_start() registered the session so I could see it even if it's
included no data(no registered variables). When I say see, I mean that
if i looked in the table I use for writeing the seesions I saw the key,
the expiry and no value.
NOW:
session_start() gives the visitor a key but it doesn't register the key
in my sessions teable unless I register a variable to the session.
A bit clearer?
------------------------------------------------------------------------
[2002-01-18 22:19:00] yohgaki@php.net
What do you mean "no value"?
Empty string? NULL? FALSE?
Are you using $HTTP_SESSION_VARS/$_SESSION? or globals?
Is register_globals on?
------------------------------------------------------------------------
[2002-01-18 21:34:18] fabian@ahrberg.se
Apache
session_start() doesn't save the session unless it holds any data. I've
just upgraded from 4.0.4pl1. It used to register all session even if
they only included a key and no value(data). Maybe it's a feature but
it sure messes my stats-scripts... =/
Get back to me with what you need.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15110&edit=1