$config['sess_use_database'] = TRUE Causing Errors

edited October 2012 in Modules
I am getting errors like the following when I set $config['sess_use_database'] = TRUE. I need to set the value to TRUE for adding a new module Flexicart.

A PHP Error was encountered
Severity: Notice

Message: Undefined index: ip_address

Filename: libraries/Session.php

Line Number: 272

Comments

  • edited 6:41PM
    ok, i got the issue. I compared the Session.php from an older version of codeigniter. I found that in sess_destroy() the code is trying to do the following stuff which was not in the other version of Session.php

    // Kill session data
    $this->userdata = array();

    When I comment this line, it's working ok.
Sign In or Register to comment.