Page 1 of 1

Modifying the sessions variables

Posted: Wed Jul 16, 2003 2:36 am
by Drachlen
Okay, on my page if you're an admin you can modify user names when your logged in.. Well if you modify your own, it thinks you're logged out because the username you just changed in the database no longer matches the sessions $username .. So, how can i go about modifying the sessions username when the record is being updated?

Posted: Wed Jul 16, 2003 3:19 am
by Monk
$_SESSION[ 'username' ] = $newusername;