Jump to content

Recommended Posts

Hi,

 

I've been working on some code and I'm just about done but I have a small problem.

 

When you login as one user, then view the files that you have, logout, then login as another user, you still see the files that were displayed in the other user until you reload the page again. This only happens in Firefox.

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/117164-firefox-doesnt-reload/
Share on other sites

  • 3 weeks later...

I'm still trying to get this to work. Here is the code that runs when users logout:

 

 

case 'logout':

{

// clear all cookies

$dm = $UPL['CONFIGS']['COOKIE_DOMAIN'];

setcookie ( 'files_username', '', -1, '/', $dm );

setcookie ( 'fiels_userid', '', -1, '/', $dm );

setcookie ( 'files_password', '', -1, '/', $dm );

session_destroy();

header ( 'Location: account.php?action=login' );

 

}

break;

 

I added the session_destroy in, which did not seem to help at all.

 

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.