Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi,

If I want to add multiple items to a session do I need to add them 1 at a time, i.e.:

 

S_SESSION['name'] = 'Fred';
$_SESSION['surname'] = 'Flintstone';

 

I tried to add them in one go using the following type of thing:

 

$_SESSION[array('name' => 'Fred', 'surname' => 'Flintstone')];

 

It didn't like it! Is it possible and my syntax is just wrong or is it 1 at a time?

 

Cheers

Paul

Link to comment
Share on other sites

 Share

×
×
  • Create New...