Jump to content

Nice & Easy Session question


jaymc

Recommended Posts

I want to use session to

1: hold a username
2: hold a number

How can I put 2 pieces of information into the 1 session, is it like so

$_SESSSION'thesession']['username'] = $username
$_SESSSION'thesession']['number'] = $number

If so, How would I then go about terminating the number session

is it

unset($_SESSSION'thesession']['number'])

I'm trying that but its not working?
Link to comment
https://forums.phpfreaks.com/topic/31435-nice-easy-session-question/
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.