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 » Sun May 13, 2012 12:04 pm

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: 18014
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Session Time-Out Issue

Post by Mick » Sun May 13, 2012 12:22 pm

Can you post a link to your board please?
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

mrmiscellaneous
Registered User
Posts: 34
Joined: Sat May 05, 2012 1:52 am

Re: Session Time-Out Issue

Post by mrmiscellaneous » Sun May 13, 2012 1:08 pm


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

Re: Session Time-Out Issue

Post by stevemaury » Sun May 13, 2012 2:11 pm

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.
For REALLY good and VERY inexpensive hosting CLICK HERE

All unsolicited PMs will be ignored.

mrmiscellaneous
Registered User
Posts: 34
Joined: Sat May 05, 2012 1:52 am

Re: Session Time-Out Issue

Post by mrmiscellaneous » Sun May 13, 2012 7:41 pm

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 » Wed Nov 12, 2014 10:40 pm

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: 23163
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Session Time-Out Issue

Post by Oyabun1 » Wed Nov 12, 2014 11:22 pm

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”

Who is online

Users browsing this forum: elonturing and 93 guests

cron