Bug #69029 [NEW]: header function don't work correct

From: Date: Wed, 11 Feb 2015 13:35:34 +0000
Subject: Bug #69029 [NEW]: header function don't work correct
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190582@lists.php.net to get a copy of this message
From: mojtaba dot khani at yahoo dot com Operating system: win PHP version: 5.4.37 Package: Unknown/Other Function Bug Type: Bug Bug description:header function don't work correct Description: ------------ header function did not work corectly some times. i send a example for test by your team thanks. mojtaba khani mojtaba.khani@yahoo.com +989351977673 Test script: --------------- security.php -------------------- session_start(); if(!isset($_SESSION["userName"])|| !isset($_SESSION["time"])||(300<=time()-$_SESSION["time"])) { session_destroy(); header("location:logInUser.php"); } require_once 'dbc.php';/// database configrator $_SESSION["time"]=time(); mysql_query(("update users set lastActivity=".time().",online=1 where userName='".$_SESSION['userName']."'"); other page ------------------------- require_once 'security.php'; /// new security.php --------------------------- session_start(); if(isset($_SESSION["userName"])&& isset($_SESSION["time"])&&(10>time()-$_SESSION["time"])) { $_SESSION["time"]=time(); require_once 'dbc.php'; Q("update users set lastActivity=".time().",online=1 where userName='".$_SESSION['userName']."'"); $ad; $ti; } else { session_destroy(); header ("location:../user/logInUser.php"); } -- Edit bug report at https://bugs.php.net/bug.php?id=69029&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69029&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69029&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69029&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69029&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69029&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69029&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69029&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69029&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69029&r=support Expected behavior: https://bugs.php.net/fix.php?id=69029&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69029&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69029&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69029&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69029&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69029&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69029&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69029&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69029&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69029&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69029&r=mysqlcfg

« previous php.bugs (#190582) next »