unexpected end of session
unexpected end of session
a couple of times since the up(?)grade, i've noticed that when posting a new message i'll be logged out when i hit the submit button. it's not consistant. they tend to be longer posts, so it *might* be that the default session time has been reset (or it could be that some other php app is sharing the same session directory, and doing garbage collection on its own schedule) or it could be a side effect of the actual posting, since i've also left sessions sitting for a while without any problems.
or, i could just be confused...
or, i could just be confused...
[url]http://3playa.cultureshark.net/[/url]
-
technopatra
- Posts: 727
- Joined: Mon Jun 16, 2003 3:04 pm
- Location: SF, CA
- Contact:
Re: unexpected end of session
I think your first suggestion nails it - we did reset the session time to be longer in the previous version of phpbb, and should have done so again.III wrote:a couple of times since the up(?)grade, i've noticed that when posting a new message i'll be logged out when i hit the submit button. it's not consistant. they tend to be longer posts, so it *might* be that the default session time has been reset (or it could be that some other php app is sharing the same session directory, and doing garbage collection on its own schedule) or it could be a side effect of the actual posting, since i've also left sessions sitting for a while without any problems.
or, i could just be confused...
As with the avatar issue, I'm afraid this is due to negligence of keeping track of the minor customizations we've made to the system. Rest assured that we are correcting this - we will have a proper checklist the next time we have to upgrade, so these aggravating incidents don't happen again.
it seems to be uniquely related to posting - i've let it sit idle for up to about 20 minutes with no problem, but (as seen above) when posting it took less than 8 minutes, and it's *always* when i hit the "submit" button.
mebbe i'll take a look over on the phpbb boards to see if it's a listed bug. urk - developer talk. blech.
mebbe i'll take a look over on the phpbb boards to see if it's a listed bug. urk - developer talk. blech.
[url]http://3playa.cultureshark.net/[/url]
-
technopatra
- Posts: 727
- Joined: Mon Jun 16, 2003 3:04 pm
- Location: SF, CA
- Contact:
strike one...
OK we did in fact have the session timeout set to 4 hrs, so that wasn't it. Still looking.
>>we did in fact have the session timeout set to 4 hrs
be careful that there are no other php apps running sessions on the same server - under the default configuration, any app can clean up another's "old" session information based on its own settings. but i'm still not sure that's it.
be careful that there are no other php apps running sessions on the same server - under the default configuration, any app can clean up another's "old" session information based on its own settings. but i'm still not sure that's it.
[url]http://3playa.cultureshark.net/[/url]
- DVD Burner
- Posts: 11031
- Joined: Fri Dec 12, 2003 3:09 am
- Burning Since: 1986
- Camp Name: White Trash Camp
- Contact:
I have'nt been seeing what Trey is talking about but seems that others may have been running across similar effects elsewheres.
http://www.icehousedesigns.com/communit ... .php?t=603
dont know if this is close to what Trey is talking about but it may be worth a look.
http://www.icehousedesigns.com/communit ... .php?t=603
dont know if this is close to what Trey is talking about but it may be worth a look.
https://www.facebook.com/NeXTCODER
the problem i'm experiencing is different from that.
the symptom:
i type in a post, and when i hit the "submit" button, i get sent to the login page.
this can happen for a couple of reasons - i actually logged out, and was attempting to post without logging in, i waited to long and phpbb logged me out, or my session information (which is stored on the server and accessed based on information from a cookie) disappeared. this can happen because of garbage collection, which may be done by *any* php app that stores session information in the same directory. the sporadic nature of this problem may point to something else, though. i'll see if i can find something wonky going on from my end.
the symptom:
i type in a post, and when i hit the "submit" button, i get sent to the login page.
this can happen for a couple of reasons - i actually logged out, and was attempting to post without logging in, i waited to long and phpbb logged me out, or my session information (which is stored on the server and accessed based on information from a cookie) disappeared. this can happen because of garbage collection, which may be done by *any* php app that stores session information in the same directory. the sporadic nature of this problem may point to something else, though. i'll see if i can find something wonky going on from my end.
[url]http://3playa.cultureshark.net/[/url]
- DVD Burner
- Posts: 11031
- Joined: Fri Dec 12, 2003 3:09 am
- Burning Since: 1986
- Camp Name: White Trash Camp
- Contact:
Thanks Trey I misunderstood.
Now I understand what you mean. I always thought that was the way phpbbs was supposed to respond.
You will also get the same response when you are logged out reading in a thread as a guest and want to post .
each thread or page that you are in as a guest will send you the same way. I think it is a php issue not necessarily garbage in the cookie.
there should be a hack for that either at phpbbs or elsewhere or switch in the admin. If I get lucky and find a solution on my setup or come across a hack I'll let you guys know.
Lets see what happens.
Now I understand what you mean. I always thought that was the way phpbbs was supposed to respond.
You will also get the same response when you are logged out reading in a thread as a guest and want to post .
each thread or page that you are in as a guest will send you the same way. I think it is a php issue not necessarily garbage in the cookie.
there should be a hack for that either at phpbbs or elsewhere or switch in the admin. If I get lucky and find a solution on my setup or come across a hack I'll let you guys know.
Lets see what happens.
https://www.facebook.com/NeXTCODER
-
precipitate
- Posts: 746
- Joined: Thu Aug 07, 2003 10:51 pm
- Location: Somewhere near an ocean and a desert and a mountain
The first two behaviors (posting to a registered thread while not logged in,
and experiencing a session timeout) are definitely the way phpBB is
designed to work.
The third (being logged in, and not at the end of the specified session time,
but having the login screen come up when you submit a new post) is
definitely not. And I've also not been able to find reported bugs that match
this condition, but that's probably because the support site uses phpBB.
and experiencing a session timeout) are definitely the way phpBB is
designed to work.
The third (being logged in, and not at the end of the specified session time,
but having the login screen come up when you submit a new post) is
definitely not. And I've also not been able to find reported bugs that match
this condition, but that's probably because the support site uses phpBB.
i'm still experienceing this problem.
i'm not sure if the tech team is aware that effective php session times are determined by the shortest of *all* the applications that use them.
you can set your session timeout in one application to 5 years, and if you have another application which times out after 1 minute, it will garbage collect the sessions from the first application (effectively ending them) in that time frame.
i'm not sure what other software runs on this machine, but i get the impression that there's quite a bit, and that some of it also uses php.
the only reliable way of separating them is to use different directories for the session information, and i'm not sure that phpbb allows that to be configured from that admin panel.
this wouldn't be so much of a pain in the ass, except that the automatic logout screws up keeping track of what i have or have not read.
i'm not sure if the tech team is aware that effective php session times are determined by the shortest of *all* the applications that use them.
you can set your session timeout in one application to 5 years, and if you have another application which times out after 1 minute, it will garbage collect the sessions from the first application (effectively ending them) in that time frame.
i'm not sure what other software runs on this machine, but i get the impression that there's quite a bit, and that some of it also uses php.
the only reliable way of separating them is to use different directories for the session information, and i'm not sure that phpbb allows that to be configured from that admin panel.
this wouldn't be so much of a pain in the ass, except that the automatic logout screws up keeping track of what i have or have not read.
[url]http://3playa.cultureshark.net/[/url]