jaymc Posted December 21, 2006 Share Posted December 21, 2006 I want to use session to1: hold a username2: hold a numberHow can I put 2 pieces of information into the 1 session, is it like so$_SESSSION'thesession']['username'] = $username$_SESSSION'thesession']['number'] = $numberIf so, How would I then go about terminating the number sessionis itunset($_SESSSION'thesession']['number'])I'm trying that but its not working? Quote Link to comment https://forums.phpfreaks.com/topic/31435-nice-easy-session-question/ Share on other sites More sharing options...
wattsup88 Posted December 21, 2006 Share Posted December 21, 2006 Using an array would be appropriate here... Quote Link to comment https://forums.phpfreaks.com/topic/31435-nice-easy-session-question/#findComment-145591 Share on other sites More sharing options...
fert Posted December 21, 2006 Share Posted December 21, 2006 you're forgetting a '[' Quote Link to comment https://forums.phpfreaks.com/topic/31435-nice-easy-session-question/#findComment-145592 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.