(09-23-2017, 09:54 AM)skunkbad Wrote: Maybe I am wrong, and it probably makes no difference, but how about trying:
PHP Code:
ini_set('session.name', 'mysess');
before your call to session_set_cookie_params.
That's the way it's done in CodeIgniter's Session.php, instead of using the session_name() function.
Thank you but I think I have kind of hacked my way to make the names same on both of my websites. The real issue seems to be different session_id character length for the file names. Do you think it's difference in php version causing it or some CI setup??
This is what is happening now.
If I go to non-CI website and login the session cookie is still getting overwritten as soon as I visit any CI page.
But if I visit CI page first then login on non-CI website and then come back on CI page I can view the session data .... because plain php sees that a session has already been started (by CI) and just writes data into that file.