ID:               34524
 Updated by:       [EMAIL PROTECTED]
 Reported By:      zoom at atlas dot sk
 Status:           Bogus
 Bug Type:         Session related
 Operating System: WinXP
 PHP Version:      5.1.0RC2
 New Comment:

AND I can't reproduce it with your incomplete script either.


Previous Comments:
------------------------------------------------------------------------

[2005-09-16 15:08:10] [EMAIL PROTECTED]

Like Lennon sang, "let it be, let it be.." (your script was incomplete)

------------------------------------------------------------------------

[2005-09-16 14:37:09] zoom at atlas dot sk

everything neccessary is already here. I have nothing to add to this.
solve it, or let it be. I dont care.

------------------------------------------------------------------------

[2005-09-16 14:12:06] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2005-09-16 13:47:19] zoom at atlas dot sk

here is sniplet of my code that should authentificate user, rewrite
current session_id, assign some attribute to it and let him go to next
page.

//
session_start()
session_regenerate_id(true);
  
$sql = "INSERT INTO logins VALUES  ('{$log_date}','{$IP['addr']}')";
                  
$db->query($sql);
  
$_SESSION['userid'] = $uid;

$link = "Location: http://"; . $CONFIG['APP_HOST'] . "in/";
 
session_commit();
header($link);

// expected behaviour
1. rewrite session id (I use cookies to propagate SID) and keep current
attributes.
2. remove old session file from filesystem
3. insert 1 record into database
4. add new attribute into $_SESSION['uid']
5. redirect user to new page

// actual results
1. rewrite session id (cookie) and file
2. remove old session file (*randomly* error "Warning:
session_regenerate_id() [function.session-regenerate-id]: Session
object destruction failed in" occurs!)
3. 2 records are inserted into database (instead of one)
4. ok
5. if no error occured in point 2, then redirect is ok.

Used system is
WinXP - SP2
PHP5.1RC2 instaled in SAPI mode
Apache 2.0.53
Clients used: IE6, Firefox1.0.6

------------------------------------------------------------------------

[2005-09-16 12:01:12] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/34524

-- 
Edit this bug report at http://bugs.php.net/?id=34524&edit=1

Reply via email to