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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.