Jump to content

[SOLVED] AdoDB Custom Session Problem


Recommended Posts

Okay, so I'm using the AdoDB's custom session handler.  I went with the adodb-session2.php instead of adodb-session.php because session2 provides encryption and I need the added security. Anyways, this is what I get at the top of my files:

 

Warning: session_module_name() [function.session-module-name]: A session is active. You cannot change the session module's ini settings at this time. in C:\wamp\www\socialwire\lib\adodb\session\adodb-session2.php on line 465

 

Any ideas?  Anyone use AdoDB?

Link to comment
https://forums.phpfreaks.com/topic/45978-solved-adodb-custom-session-problem/
Share on other sites

solved.  for those who wondering what i needed to do, here is the code:

 

<?php

if(session_id())

{

session_unset();

session_write_close();

}

require_once($path . 'lib/sessionHandler.inc');

session_start();

?>

 

you have to unset any session that your php.ini file might have set, and then include the adodb's handler and then start sessions. A thanks to neylitalo for providing the directions i needed.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.