php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13273 session_register naming bug
Submitted: 2001-09-12 16:19 UTC Modified: 2001-09-12 16:24 UTC
From: kasper at criminal dot org Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.0.4pl1 OS: FreeBSD 4.3-STABLE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 - 41 = ?
Subscribe to this entry?

 
 [2001-09-12 16:19 UTC] kasper at criminal dot org
I'm having an intermittent problem with session_register, where if I register a session variable such as:

<?
session_register("session_userid");
?>

then in the querystring pass a variable such as:

http://site/test.php?userid=xx


intermittently, the script will cache what is passed through the querystring into a session variable called $userid, and use that value for the rest of the session.

Note, it doesn't use the value of what is in $session_userid, it only creates a $userid session variable and overrides the querystring for the remainder of the session.

I have tested this by doing something like:

<?
if(session_is_registered("userid")) echo "registered\n";
?>

I will intermittantly get the word "registered" on the page.

I've searched high and low, and nobody seems to know anything about this, so I figured I would submit it to you.

I installed PHP by using the mod_php4 port from the FreeBSD ports tree in /usr/ports/www/mod_php4.  I'm also running Apache 1.3.17.

If there is any other information you'd like me to submit, let me know via e-mail and I will submit it ASAP.

Thank you,

~kasper@criminal.org

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-12 16:24 UTC] derick@php.net
Not a bug, please ask for support on the php-general@lists.php.net mailing list.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 07:01:31 2024 UTC