ID:               15110
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to