Bug #15110 Updated: session_start()

From: Date: Wed, 06 Feb 2002 20:32:04 +0000
Subject: Bug #15110 Updated: session_start()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-79392@lists.php.net to get a copy of this message
 ID:               15110
 Updated by:       shiflett@php.net
 Reported By:      fabian@ahrberg.se
 Status:           Feedback
 Bug Type:         Session related
 Operating System: Linux
 PHP Version:      4.1.1
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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



Thread (11 messages)

« previous php.dev (#79392) next »