Notifications
Clear all

[Solved] I cannot log out.

2 Posts
2 Users
0 Reactions
1,685 Views
(@itanshi)
Posts: 381
Reputable Member
Topic starter
 

I installed the latest (3.1.1) fresh.
I run Ubuntu Edgy Eft (my server is dreamhost)
Firefox 2.0.0.1 is my  (safe mode changed nothing)
I have master password set + remember on the check box

I cleared cache and I have not been able to logout for the last 5 min.

site - www.fanforge.net

I made another admin, he can't logout either. Here are his system specs:

win xp
firefox (2.0.0.1)
tried safe mode and he cleared cache. no change, still stuck

--

update, if i restart my computer, i'll be logged out. friend surmises it to be a session problem server side

--

edit - my assumption was incorrect. The code was infact wrong/incomplete so here is an update:

user/logout.php



<?php

// Generally, you should be able to leave this alone.  This logout function will unset all session variables and cookie variables of the same name that begin with the site's sitekey.
include("config.php");
session_start();

$_SESSION = array();
$_GET = array();
$_POST = array();

if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time()-42000, '/');
}

session_destroy();

header('Location: http://'.$_SERVER ['HTTP_HOST'].'/index.php');
exit( );
?>

if a fix is needed, feel free, but i logout over and over on multiple browsers and os's without issue now. All my users were stuck beforehand. I could log in and out on different script without issue too.


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc πŸ˜€ Alpha released!

 
Posted : 06/02/2007 5:16 pm
(@tammy)
Posts: 2577
Member Moderator
 

As you've figured out it's a server side session error, I'm moving this to solved bugs.


 
Posted : 06/02/2007 11:39 pm
Share: