se7enet purgatorio

Page 1 of 1 1
Topic Options
Rate This Topic
#17093 - 04/07/08 09:06 PM ... Logging out... Doesnt.
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
It HAS just occurred to me... With the help of a woman and codeing partner, well, they found out a long time ago, I only just looked at it now, but when you log out of the game... it doesnt. The cookie is never destroyed.

Has any one else noticed this? Logout, then go back to your games root path and you will still be logged in. Odd.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17095 - 04/08/08 03:04 AM Re: ... Logging out... Doesnt. [Re: AnmanIndustries]
Mute
Malt-o-Meal


Registered: 04/07/08
Posts: 7
Loc: Denmark

Offline
Yeah, I've noticed the same. There is a topic on it some pages back. Not any fix though. I have no idea on how to kill a cookie.

\:\)

Top
#17096 - 04/08/08 03:12 AM Re: ... Logging out... Doesnt. [Re: Mute]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
If its that long ago I dont remember it.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
#17097 - 04/08/08 03:18 AM Re: ... Logging out... Doesnt. [Re: AnmanIndustries]
Mute
Malt-o-Meal


Registered: 04/07/08
Posts: 7
Loc: Denmark

Offline
Hehe...

It's a while back, Jamin replied, but nothing was done about it i guess :s

Kill my cookie!

Top
#17100 - 04/08/08 08:29 PM Re: ... Logging out... Doesnt. [Re: Mute]
Jamin Administrator
Cookie Crisp
****

Registered: 02/25/05
Posts: 2649
Loc: Texas

Offline
Mmmmm... not sure with 100% accuracy, but if I had to guess...

1. login.php/logout() includes globals.php.
2. globals.php includes cookies.php and runs checkcookies(), which in fact creates a new cookie each time it runs.
3. logout() then tries to set another cookie with the same name, but with a different time.
4. ???
5. Profit!!!

But seriously, I dunno... maybe there is a conflict between the cookie that got set from checkcookies(), and the one that logout() is trying to set/unset. Maybe you can't send more than one cookie per page load? But then, I've worked with a lot of stuff that used a similar take on the same cookie-setting mechanism (validate user from cookie, set cookie with new timestamp, then nullify the cookie later if we have to logout) and I've never ran into the problem before.

I guess you can try changing
 Code:
include("globals.php");

to
 Code:
$controlrow = dorow(doquery("SELECT * FROM <<control>> WHERE id='1' LIMIT 1"));

and see if that solves the logout issue. If it does, then at least we know it's something caused by whatever is going on in globals.php...

---Jamin
_________________________
Diablo 3 Lead Designer Jay Wilson:
“The development of a Blizzard game is sometimes a long affair. This is how long it took us to be ready.”

Top
#17102 - 04/09/08 12:33 AM Re: ... Logging out... Doesnt. [Re: Jamin]
AnmanIndustries
Cookie Crisp
*****

Registered: 03/21/05
Posts: 2876
Loc: Planet Stupid, AKA Earth

Offline
You have saved the day dear sir. That fix works quite well.
_________________________
If you want me to punch you in the nuts go to:
http://www.AnmanIndustries.com

I'll do it for free too. Enjoy.

Top
Page 1 of 1 1


Hop to:

se7enet

Barack Obama Logo