| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
sarah Debugger


Offline Joined: Mar 25, 2005 Posts: 2130
|
Posted: Sun Feb 26, 2006 5:03 am Post subject: Bad Request |
|
Every once in a while, when refreshing the forums index, a screen like the maintenance screen shows up with the message that dragonflycms.org/Forums.html is a bad request.
sarah's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.37/4.1.21-standard/4.4.4/9.1.1
|
|
| Back to top |
|
 |
run0 Supporter


Offline Joined: Jun 28, 2004 Posts: 1559
|
Posted: Sun Feb 26, 2006 5:20 am Post subject: Re: Bad Request |
|
confirmed
_________________

run0's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33 (Unix)/4.0.22-standard/4.3.9/DF 9.x
|
|
| Back to top |
|
 |
pretzy 500+ Posts Club


Offline Joined: Sep 09, 2005 Posts: 519 Location: Australia
|
|
| Back to top |
|
 |
xfsunoles XHTML Specialist


Offline Joined: Apr 30, 2004 Posts: 2502 Location: Melbourne, Florida
|
Posted: Sun Feb 26, 2006 6:20 am Post subject: Re: Bad Request |
|
I Guess new Session system check on your session...........
i do confirmed it.
xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
|
|
| Back to top |
|
 |
Wide Platinum Supporter


Offline Joined: Aug 07, 2004 Posts: 294 Location: Playa Del Rey, CA
|
Posted: Sun Feb 26, 2006 6:32 am Post subject: Re: Bad Request |
|
| Quote:: |
Bad Request
The URL that you requested, /Forums/search/search_id=newposts.html, was a bad request.session expired
[ Go Back ] |
Been getting it all day here
02/25/06
Wide's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Debian/Apache2/MySQL 4.1.15-Debian/PHP4 4.4.2-1build1/9.1.1
|
|
| Back to top |
|
 |
djdevon3 Gold Supporter


Offline Joined: Aug 05, 2004 Posts: 4363
|
Posted: Sun Feb 26, 2006 9:59 am Post subject: Re: Bad Request |
|
i've gotten it twice today so far. i just got another one a few seconds ago. i was over at myndworx checking out their forums and used my dragonfly bookmark to come back here and got the error. it displayed for a few seconds then put me in the news where my bookmark is directed. so no big deal.
djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33/4.4/4.3.11
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Sun Feb 26, 2006 1:11 pm Post subject: Re: Bad Request |
|
a session expires after 24 minutes (default php behavior).
However when expired the data gets deleted and you start a new one.
There's a script that managed to post as anonymous using a fixed session cookie so i'm checking if this forcefull session destroyer will work.
This means you can't use your previous session ID but just get a new one.
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Pitcher Creative Designer


Offline Joined: Apr 20, 2004 Posts: 147 Location: Norway
|
Posted: Sun Feb 26, 2006 2:02 pm Post subject: Re: Bad Request |
|
I too get this error message, and all the new forum message is marked as read, even I don't have been in the forum today before now.
_________________

Pitcher's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) ClarkConnect 3.2/Apache 2.0.x/MySQL 4.1.x/PHP 4.3.x/Dragonfly CVS
|
|
| Back to top |
|
 |
djdevon3 Gold Supporter


Offline Joined: Aug 05, 2004 Posts: 4363
|
Posted: Sun Feb 26, 2006 2:16 pm Post subject: Re: Bad Request |
|
so why did this start happening all of a sudden? what are you guys up to? i'm sure it's good things but i'd be interested to hear what your shooting for when it happened.
djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33/4.4/4.3.11
|
|
| Back to top |
|
 |
Kuragari 500+ Posts Club


Offline Joined: Apr 25, 2005 Posts: 563 Location: AnimeEgo
|
Posted: Sun Feb 26, 2006 2:26 pm Post subject: Re: Bad Request |
|
| djdevon3 wrote: |
| so why did this start happening all of a sudden? what are you guys up to? i'm sure it's good things but i'd be interested to hear what your shooting for when it happened. |
| DJMaze wrote: |
| There's a script that managed to post as anonymous using a fixed session cookie so i'm checking if this forcefull session destroyer will work. |
I've seen this happen a few times aswell, and my first thought after seeing djmaz's explanation was "so now it works the way it should" sessions are supposed to expire and a new ID should be given when you start a new session.
However i think the error page about expired sessions should be skipped if it's not a secured area such as the admin area. I'd hate to explain to all my users why theres an error everytime they refresh a page, I don't think they should be notified that their session expired, just start a new one and send them to the page the requested immediately.
My 2 cents
Kuragari's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.9 / 1.3.34 / 4.1.14 / 4.4.1 / CVS
|
|
| Back to top |
|
 |
WebSiteGuru 1000+ Posts Club


Offline Joined: Jun 09, 2005 Posts: 2318
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Sun Feb 26, 2006 4:03 pm Post subject: Re: Bad Request |
|
I did try a redirect but a redirecting page doesn't destroy the cookie which caused it to be endless looping. You must show a temporary page that refreshes to properly destroy it.
The issue is that $_COOKIE[session_name()] exists and session_start() always uses that "expired" ID.
unset($_COOKIE[session_name()]) is unreliable since we don't know in which PHP versions its protected.
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Kuragari 500+ Posts Club


Offline Joined: Apr 25, 2005 Posts: 563 Location: AnimeEgo
|
Posted: Sun Feb 26, 2006 4:29 pm Post subject: Re: Bad Request |
|
| DJMaze wrote: |
| I did try a redirect but a redirecting page doesn't destroy the cookie which caused it to be endless looping. You must show a temporary page that refreshes to properly destroy it. |
Well, that shows how much I know about sessions
I guess a redirection page isn't a big deal, but my main point was the error page. I think it might make people think they didnt something wrong, or the site is broken if they keep getting error messages. Maybe a different message like "Redirecting you to the requested page" or something similar
Kuragari's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux 2.6.9 / 1.3.34 / 4.1.14 / 4.4.1 / CVS
|
|
| Back to top |
|
 |
djdevon3 Gold Supporter


Offline Joined: Aug 05, 2004 Posts: 4363
|
Posted: Sun Feb 26, 2006 5:15 pm Post subject: Re: Bad Request |
|
yeah session expired would cause new users to think they've gotten an error or try to login again. i like kuragari's idea of showing a redirect message. that way no one is none the wiser. you wouldn't even have to explain it to df admins either as it would become part of the cms. but you might eventually get some questions about how to take out the redirect message and explain it then. thanks for explaining it more maze.
djdevon3's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/1.3.33/4.4/4.3.11
|
|
| Back to top |
|
 |
xfsunoles XHTML Specialist


Offline Joined: Apr 30, 2004 Posts: 2502 Location: Melbourne, Florida
|
Posted: Sun Feb 26, 2006 11:20 pm Post subject: Re: Bad Request |
|
What Happen if you try comment cpg_error('session expired', 400, get_uri());?
xfsunoles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Apache/1.3.34 (Unix)/4.0.25-standard/4.4.1/CVS
|
|
| Back to top |
|
 |
|
|