Forum Moderators: coopster

Message Too Old, No Replies

Session problems

         

toltec75

8:20 pm on Nov 3, 2004 (gmt 0)

10+ Year Member



What I have is a form in which you type your username and passsword and those are checked against the values in the databese! If they are coeect username and psaaword are registered as session variables!

Now i have a form in which the user can change his username and password and after they do that they get a blank white page and cannot access any of the pages with session!

What I put was

$_SESSION['username'] = $_POST['username'];

in the script that processes the new data into database but it doesn`t work!

As if the session variables can`t change their value or something!

Help!

dreamcatcher

8:35 pm on Nov 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try unsetting the session variable once the value is changed. Then set a new variable. Sounds like the old values are still set.

toltec75

8:56 pm on Nov 3, 2004 (gmt 0)

10+ Year Member



DOn`t wanna sound like a n00b but how do I do that!

i tried with a session_unset(); and it should unregister all the variables but it doesn`t work!

toltec75

9:00 pm on Nov 3, 2004 (gmt 0)

10+ Year Member



I managed to do it! Thanx for the advice!

dreamcatcher

1:18 am on Nov 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry for not coming back to you earlier. Glad you got it sorted. :)