xoops forums

ZioCrick

Just popping in
Posted on: 2009/10/16 23:10
ZioCrick
ZioCrick (Show more)
Just popping in
Posts: 44
Since: 2004/7/29
#1

Session Time-out stops login

Hi,
I am using XOOPS 2.0.18.1 and NewBB 3.08

It happens that if a user is writing a post and the session time-out expire, the post is not added ... but no user can log-in anymore.

THe login seems ok but the user is not logged in and his nik appear into the "online users" box.

So I have to empty (truncate) the xoops_session table everytime.

Is there a solution?

Thanks.
I hope my english is clear enought.

ghia

Community Support Member
Posted on: 2009/10/17 7:42
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#2

Re: Session Time-out stops login

The NewBB forum uses a timing from itself to determine if submitting a post is in time or not.
The user stays logged in, but the post is not admitted.
A subsequent submit after the error message will do the post.
I think you are a bit confudsed by this behaviours.

User login time is handled by the session settings in the system general preferences.
NewBB has a separate configuration for its posting time (default is 15(?) minutes).

(When doing lengthly posts, it is always a good idea to do a select all - copy (ctrl-a, ctrl-c) before submitting. In case of problems, you have still your work on the clipboard for pasting into eg a repeated operation.)

ZioCrick

Just popping in
Posted on: 2009/10/17 9:12
ZioCrick
ZioCrick (Show more)
Just popping in
Posts: 44
Since: 2004/7/29
#3

Re: Session Time-out stops login

ghia tank you for your answer.

Problably i don't explain correctly.
Sorry but I don't know english very well.

Quote:
ghia wrote:
The NewBB forum uses a timing from itself to determine if submitting a post is in time or not.
The user stays logged in, but the post is not admitted.

Ok,
My problem is that when the session time-out occurs, nobody can login anymore, until I truncate the xoops_session table.


Quote:
A subsequent submit after the error message will do the post.

In my case A subsequent submit after the error message will not do the post, and the user do not stay logged in.

Look that even in this forum it do not the post.
To post this reply I had to logout and than login again.

Quote:
User login time is handled by the session settings in the system general preferences.
NewBB has a separate configuration for its posting time (default is 15(?) minutes).

I can't find the NewBB posting time parameter.
Do you have some idea?

Quote:
(When doing lengthly posts, it is always a good idea to do a select all - copy (ctrl-a, ctrl-c) before submitting. In case of problems, you have still your work on the clipboard for pasting into eg a repeated operation.)

Ok, I know this

ghia

Community Support Member
Posted on: 2009/10/17 10:52
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#4

Re: Session Time-out stops login

Quote:
Look that even in this forum it do not the post.
To post this reply I had to logout and than login again
Here, on XOOPS.org?
Login session here is 45 minutes (or longer with remember me checked at front page side column).
Things to check:
Seems you have maybe a problem with cookies on your browser.
See also you have a stable internet connection (no IP change in ADSL, WiFi, ...).
Try to repair your sessions table with phpmyAdmin.
Check if your XOOPS_URL in mainfile.php has www. in it.

Quest

Friend of XOOPS
Posted on: 2009/10/17 11:21
Quest
Quest (Show more)
Friend of XOOPS
Posts: 1034
Since: 2005/11/19
#5

Re: Session Time-out stops login

Time limits are set for the Newbb in the Newbb preferences near bottom.

Quest

ghia

Community Support Member
Posted on: 2009/10/17 13:04
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#6

Re: Session Time-out stops login

Other cause of session loss, can also be using PHP 5 modules as eg News 1.63 on a PHP 4 server.

ZioCrick

Just popping in
Posted on: 2009/10/18 14:43
ZioCrick
ZioCrick (Show more)
Just popping in
Posts: 44
Since: 2004/7/29
#7

Re: Session Time-out stops login

Quote:
ghia wrote:Here, on XOOPS.org?

Yes.

Quote:
Seems you have maybe a problem with cookies on your browser.
Which type of problems could it be?

Quote:
See also you have a stable internet connection (no IP change in ADSL, WiFi, ...).
It's ok.

Quote:
Try to repair your sessions table with phpmyAdmin.
Already done.

Quote:
Check if your XOOPS_URL in mainfile.php has www. in it.
In my mainfile.php there is this definition:
define('XOOPS_URL''http://www.positivamente.it');
Is it correct?

My server use: MySQL - 5.0.32-Debian_7etch8
My News module is Version 1.55.

Quest
Since my site is in italian I show you the values of the variables in my modinfo.php
_MI_EDIT_TIMELIMIT 60
_MI_RECORDEDIT_TIMELIMIT 
30
_MI_DELETE_TIMELIMIT 
60
_MI_POST_TIMELIMIT 
30

I didn't find other variables regarding time limit.

Some other idea?

PS: Before I posted this post, I changed the "Privacy level" into the "Internet properties" panel, from Medium high to Medium and the post was posted normally.
Could it be the problem?

ghia

Community Support Member
Posted on: 2009/10/18 17:25
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#8

Re: Session Time-out stops login

Don't know what is enabled/disabled in the various stages of the trust level in IE, but one may dealing with accepting cookies from a site or not.
If you can specify domains to have a more trustworthy approachand less stringent restrictions, then your site and XOOPS.org should be amongst them.

ZioCrick

Just popping in
Posted on: 2009/10/19 22:28
ZioCrick
ZioCrick (Show more)
Just popping in
Posts: 44
Since: 2004/7/29
#9

Re: Session Time-out stops login

Quote:
ZioCrick wrote:
I changed the "Privacy level" into the "Internet properties" panel, from Medium high to Medium and the post was posted normally.

I have done a few test and, since I didn't modify anything else, I suppose that it was the cause, because now it is working well.
I hope so.

ZioCrick

Just popping in
Posted on: 2009/10/27 15:21
ZioCrick
ZioCrick (Show more)
Just popping in
Posts: 44
Since: 2004/7/29
#10

Re: Session Time-out stops login

No, no, it do not work.

I have always to empty (truncate) the "session" table.

Some other idea?