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? 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... 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 '[' Link to comment https://forums.phpfreaks.com/topic/31435-nice-easy-session-question/#findComment-145592 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.