1
ZioCrick
Session Time-out stops login
  • 2009/10/16 23:10

  • ZioCrick

  • Just popping in

  • Posts: 44

  • Since: 2004/7/29


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.

2
ghia
Re: Session Time-out stops login
  • 2009/10/17 7:42

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


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.)

3
ZioCrick
Re: Session Time-out stops login
  • 2009/10/17 9:12

  • ZioCrick

  • Just popping in

  • Posts: 44

  • Since: 2004/7/29


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

4
ghia
Re: Session Time-out stops login
  • 2009/10/17 10:52

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


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.

5
Quest
Re: Session Time-out stops login
  • 2009/10/17 11:21

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


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

Quest

6
ghia
Re: Session Time-out stops login
  • 2009/10/17 13:04

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


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

7
ZioCrick
Re: Session Time-out stops login
  • 2009/10/18 14:43

  • ZioCrick

  • Just popping in

  • Posts: 44

  • Since: 2004/7/29


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?

8
ghia
Re: Session Time-out stops login
  • 2009/10/18 17:25

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


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.

9
ZioCrick
Re: Session Time-out stops login
  • 2009/10/19 22:28

  • ZioCrick

  • Just popping in

  • Posts: 44

  • Since: 2004/7/29


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.

10
ZioCrick
Re: Session Time-out stops login
  • 2009/10/27 15:21

  • ZioCrick

  • Just popping in

  • Posts: 44

  • Since: 2004/7/29


No, no, it do not work.

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

Some other idea?

Login

Who's Online

187 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 187


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits