|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8270 problem when including phpinfo() command with session
Submitted: 2000-12-15 01:08 UTC Modified: 2001-02-24 12:43 UTC
From: web at sorbom dot net Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.3pl1 OS: nt4 sp6a
Private report: No CVE-ID: None
 [2000-12-15 01:08 UTC] web at sorbom dot net
The following simple script should increment the counter by 1 on each reload.  Instead it increments by 3 on the first reload, then increments by 1 on subsequent reloads.  Removing the phpinfo() command allows the counter to operate correctly.

Placing the phpinfo() command before the session start does not work either.

Please let me know if I have done something wrong, or if this is a real problem.

I am not running the isapi module.


<html><head><title>PHP Test</title></head>

// initialize a session

// register a session variable
session_register ("counter");

// increment value of counter

// Display a cute message with counter
echo("You have reloaded this page $counter times.<P>");

// Display whole bunch of information



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-15 02:32 UTC]
doesn't happen with Linux/Apache

i guess the two additional count steps came
from the sub-requests for the two logos shown
by phpinfo

could you please try to use your script with image
loading disabled in your browser and see if this
changes the effect?
 [2001-02-24 12:43 UTC]
closed through lack of user feedback.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat May 30 15:01:24 2020 UTC