Session Time-Out Issue

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
mrmiscellaneous
Registered User
Posts: 34
Joined: Sat May 05, 2012 1:52 am

Session Time-Out Issue

Post 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).
Last edited by HGN on Sun May 13, 2012 12:15 pm, edited 1 time in total.
Reason: Moved from "[3.0.x] Styles Support & Discussion"
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: Session Time-Out Issue

Post by Mick »

Can you post a link to your board please?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
mrmiscellaneous
Registered User
Posts: 34
Joined: Sat May 05, 2012 1:52 am

Re: Session Time-Out Issue

Post by mrmiscellaneous »

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 52768
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Session Time-Out Issue

Post 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.
I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
mrmiscellaneous
Registered User
Posts: 34
Joined: Sat May 05, 2012 1:52 am

Re: Session Time-Out Issue

Post 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!
Quercus_UK
Registered User
Posts: 4
Joined: Sun Oct 19, 2014 12:38 pm

Re: Session Time-Out Issue

Post 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?
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Session Time-Out Issue

Post by Oyabun1 »

Please fill out the Support Request Template and post it back here to enable us to assist you better.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Locked

Return to “[3.0.x] Support Forum”