Jump to content

SESSION help!!!!


techiefreak05

Recommended Posts

Hi, I hold the usernames of my site in SESSIONS, this is what I use: $_SESSION['username'], now how do i do something like this :

[code]if $_SESSION['username'] = "example"{
echo "MESSAGE THAT ONLY 1 USER WILL SEE"}[/code]

So basically,if the session equals something, echo something.. but IDK the right PHP syntax...
Link to comment
https://forums.phpfreaks.com/topic/16198-session-help/
Share on other sites

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.