I have an update form and whenever the username gets开发者_开发问答 updated, it messes up the session obviously since thier is a new username. how can i make it so that the user won't ahve to logout and the session will continue with the new info..
This should work. Post this after your update or insert script.
$username = $_post["username"];
$_post["username"] = $username;
精彩评论