Modifying the sessions variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Drachlen
Forum Contributor
Posts: 153
Joined: Fri Apr 25, 2003 1:16 am

Modifying the sessions variables

Post 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?
Monk
Forum Newbie
Posts: 8
Joined: Wed Jul 16, 2003 3:19 am
Location: Germany - Temporarily

Post by Monk »

$_SESSION[ 'username' ] = $newusername;
Post Reply