Page 1 of 1

Session Time-Out Issue

Posted: Sun May 13, 2012 12:04 pm
by mrmiscellaneous
How do I disable the timing-out feature? It's frustrating to spend a very long time on a post only to be redirected to the login page once you finally hit "Submit." I'd like for users to be signed out only when they have manually signed out (or closed their browser).

Re: Session Time-Out Issue

Posted: Sun May 13, 2012 12:22 pm
by Mick
Can you post a link to your board please?

Re: Session Time-Out Issue

Posted: Sun May 13, 2012 1:08 pm
by mrmiscellaneous

Re: Session Time-Out Issue

Posted: Sun May 13, 2012 2:11 pm
by stevemaury
OPEN includes/functions.php

FIND:

Code: Select all

'autologin'    => false,
REPLACE WITH:

Code: Select all

'autologin'    => true,
OPEN /styles/naruto_shippuuden/index_body.html

FIND AND DELETE:

Code: Select all

<!-- IF S_AUTOLOGIN_ENABLED -->
            | <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
         <!-- ENDIF -->
OPEN /styles/naruto_shippuuden/login_body.html

FIND AND DELETE:

Code: Select all

<!-- IF S_AUTOLOGIN_ENABLED --><dd><label for="autologin"><input type="checkbox" name="autologin" id="autologin" tabindex="4" /> {L_LOG_ME_IN}</label></dd><!-- ENDIF -->

OPEN /styles/naruto_shippuuden/viewforum_body.html

FIND AND DELETE:

Code: Select all

<!-- IF S_AUTOLOGIN_ENABLED --><dd><label for="autologin"><input type="checkbox" name="autologin" id="autologin" tabindex="3" /> {L_LOG_ME_IN}</label></dd><!-- ENDIF -->
Purge the cache.

This will keep all users logged in unless they specifically logout. It will keep them logged in even if they close the browser. Note that there is some overhead involved in doing this.

Re: Session Time-Out Issue

Posted: Sun May 13, 2012 7:41 pm
by mrmiscellaneous
Excellent! It worked! I started a post and came back to it nearly an hour later, refreshed the browser and submitted it: it posted and I was still logged in. Thank you!

I now also see why you wanted the URL, by the way. Although, it's too bad that you were exposed to my spaghetti-coded board (if you looked) :oops: . I always wondered if anyone would view page source and have a good laugh :lol:

In any case, thanks for the thorough and easy-to-follow response!

Re: Session Time-Out Issue

Posted: Wed Nov 12, 2014 10:40 pm
by Quercus_UK
Hi - I have tried using this code but it seems to cause problems with the ACP login - instead of the normal login options I just get a blank page.
Any suggestions?

Re: Session Time-Out Issue

Posted: Wed Nov 12, 2014 11:22 pm
by Oyabun1
Please fill out the Support Request Template and post it back here to enable us to assist you better.