• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Native php database sessions

Hi. Can anyone tell me how to use native php database sessions in CI (the ones with $_SESSION)? I know that session_set_save_handler needs to be used like this
$handler = new FileSessionHandler();
    array($handler, 'open'),
    array($handler, 'close'),
    array($handler, 'read'),
    array($handler, 'write'),
    array($handler, 'destroy'),
    array($handler, 'gc')

Where can I create my own class for handling sessions and how can I use it in controllers and models? Thanks.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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