Multiple Session Problem

Hi Everyone,

Is there any way to create multiple sessions at the same time in codeigniter ? I need to create multiple sessions ( Administrator and User) at the same time. Thanks in advance.

Why would you need that as 2 seperate sessions, instead of a single, combined session?

[eluser]Colin Williams[/eluser]
I think you are confusing the role of sessions. More specifically, what are you wanting to do?

i think the person wants a result like

$_SESSION['user'] = 100;//user id
$_SESSION['admin'] = 'yes';

[eluser]Colin Williams[/eluser]

$session = array(
  'user' => 100,
  'admin' => 'yes',

How one could not glean that from the User Guide is beyond me. Maybe it is a different issue...

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.