So, the module doesn't work as needed with Drupal 5; that is, user can login, but can't log out; or, a php exception error is thrown.

Now, if we comment out the lines:

session_write_close();
session_set_save_handler("sess_open", "sess_close", "remember_me_sess_read", "sess_write", "sess_destroy", "sess_gc");
session_start();

in function _remember_me_set_lifetime in remember_me.module, the module starts working fine.

Any ideas why?

Comments

doq’s picture

Status: Active » Fixed

I have added

session_write_close();
session_set_save_handler("sess_open", "sess_close", "remember_me_sess_read", "sess_write", "sess_destroy", "sess_gc");
session_start();

to make module work correctly with organic groups module that invokes user_load() in its hook_init(). But it doesn't work with Drupal 5.0 'cos we have specified invalid callback in session_set_save_handler().

Fixed. Commited to the HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)