Jump to content

(Sessions) Users stay logged in untill they open a pop-up or external page


Recommended Posts

Hi all, I used PHPBB as the initial site but gradually pahsed it out untill I was left with just using the login system and the tracking code so I could keep track of users.  I finanly got rid of that and made my own log in system.  As long as the user stays "in the site" loading page window by page window everything is fine.  But if say they open a profile which lanuches in to a new window, suddenyl tehy get logged out.   

The way I implemented the "stay logged in" system was simple to call session_start() at the top of every page and make sure that $_SESSION["user_id" was alwasy set to something higher than 0.      I've treid emitting the session_start() call in the pages that get launched in a new window but its still logs out the user. 

I really dont understand this, can someone please explain why this happens?

 

Thanks, look forward to your reply.

Graham

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.