• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
session bug?

#1
I used session in many places.
when I set(update) part of session. the previous session data was destroied. only the updated data are available.

please test it!!
step one, use the follow data.

PHP Code:
$data = array(
 
       'userid'  => '1',
 
       'username'  => 'johndoe',
 
       'email'     => '[email protected]'
);

$session->set$data); 

step two, run the follow code to update part of data.
PHP Code:
$newdata = array(
 
       'username'  => 'david name',
);

$session->set($newdata); 

now the session data is array('username'=>'david name')
the session of email and userid are not available.

is it a bug?
Q&A for Codeigniter
StartBBS--open-source, light weight forum software.
Best VPS:Digital Ocean


Messages In This Thread
session bug? - by startbbs - 11-25-2016, 05:49 AM
RE: session bug? - by prezire - 11-25-2016, 07:44 AM
RE: session bug? - by startbbs - 11-25-2016, 08:10 AM
RE: session bug? - by prezire - 11-25-2016, 08:37 AM
RE: session bug? - by Avenirer - 11-25-2016, 09:02 AM
RE: session bug? - by ciadmin - 11-25-2016, 07:49 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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