开发者

After updating username how do set that as session

开发者 https://www.devze.com 2023-03-03 23:42 出处:网络
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 a

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;

0

精彩评论

暂无评论...
验证码 换一张
取 消