Jump to content

Accessing a Session variable


fallenangel1983

Recommended Posts

I get the error = rse error: syntax error, unexpected '{' in C:\  blah  blah blah  .php on line 18

 

the line 18 is:

 

$pass == ({$_SESSION['password']});

 

now i know its probalby because of the '{' but i dont know how to set it? checked the usual tutorials but i dont really understand it.

I know its trivial but any help would be appreciated, cheers.

Link to comment
https://forums.phpfreaks.com/topic/96326-accessing-a-session-variable/
Share on other sites

That worked so far thankyou very much but how is it that you set the new password to the session password?

 

what i need to do in detail is change the password but set the new password that they have chosen to the new session password because as of now the password is changing but not the session password until the user logs out.

 

this causes a problem if the user wishes to change the password again before logging out.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.