#34524 [NEW]: session_regenerate_id doubles request
| From: | zoom at atlas dot sk | Date: | Fri, 16 Sep 2005 09:59:39 +0000 |
| Subject: | #34524 [NEW]: session_regenerate_id doubles request | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85148@lists.php.net to get a copy of this message | ||
From: zoom at atlas dot sk
Operating system: WinXP
PHP version: 5.1.0RC1
PHP Bug Type: Session related
Bug description: session_regenerate_id doubles request
Description:
------------
I use following order of code after users log-in, to regenerate session
id.
session_start()
...checking values...
...assigning values into $_SESSION
session_regenerate_id(true)
...inserting into database, date and IP of log event.
session_commit()
header() redirect into another page to show private content.
----
interesting thing is, that every time I run this script I get 2! inserts
into database - as there were 2 logins occured.
I use IE6 and FF and have also *random* problems with session_destroy()
function.
In debugging process I uncovered this above.
--
Edit bug report at http://bugs.php.net/?id=34524&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34524&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34524&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34524&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34524&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34524&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34524&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34524&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34524&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34524&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34524&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34524&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34524&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34524&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34524&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34524&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34524&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34524&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34524&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34524&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34524&r=mysqlcfg