|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-12-04 09:30 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Mar 04 18:00:01 2026 UTC |
Description: ------------ When running some scripts the scripts runs twice. We are using apache 2 on a suse linux box. It generaly happens when the header function is being used with the location header. The script want get a far as the header but will re-run. If i put a die in it wont die and will still run twice. I have tested this by adding a seesion var names count and incrementing it each time the script is run. I always get two. Reproduce code: --------------- <?php session_start(); if(!isset($_SESSION["Count"])){ $_SESSION["Count"]++; } else{ $_SESSION["Count"] = 0; } header("Location:gosomeware.php"); ?> Expected result: ---------------- Should out put 0 Actual result: -------------- 1