MyBB Community Forums

Full Version: Where are session vars clearing?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

When I create a session var e.g. $_SESSION['my_session']

it is cleared when I click on the very next page. This only happens if cookies are not set, or user is not logged in!

I am not 'unset' it anywhere, so obviously ALL session vars are being destroyed globally, but I cannot find where??????????

This is very annoying as it removes all the benefits that SESSION vars have!

Some someone please help me out???
Are you using session_start() ?
Hi again,

yes I am.

I'm even trying to print the session var in the global.php page, directly after the session_start() and before all the other code begins.

This is causing an issue as the client has asked for a landing page that directs them to different countries.
Are you saving the session as well? MyBB doesn't affect PHP sessions in any way or form...