Skip to content Skip to sidebar Skip to footer

Php $_session Variables Randomly Get Overwritten?

Okay, so when I run this script to remove a user's comment from a forum post, the $_SESSION['id'] (user's mysql id) changes to the $postid (the id of the forum post). I am not call

Solution 1:

If register_globals is on, this line

$id = mysql_real_escape_string($_GET['id']);

possibly change the value of $_SESSION['id']. So please try again with register_globals off.

Post a Comment for "Php $_session Variables Randomly Get Overwritten?"