Hey. i registed a session
session_register("username");
user can change there username... How could i update session with a new username? plz help!
1). Drop session_register('username'). It's old-fashioned. Stop using $username and start using $_SESSION['username'] instead.
2). Changing the value of a session variable is done the same way any variable has its value changed: $_SESSION['username']='newusername';