View Issue Details

IDProjectCategoryView StatusLast Update
0005057Composrcorepublic2022-11-28 19:24
ReporterAdam EdingtonAssigned ToChris Graham 
SeverityFeature-request 
Status closedResolutionno change required 
Product Version10.0.43 
Fixed in Version 
Summary0005057: Extended session for admin/staff accounts
DescriptionWhilst the default 5 minutes is a good choice for members, I think an extended session (until browser is closed) would be preferable for staff.
TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Activities

Chris Graham

2022-11-21 03:14

administrator   ~0007668

Where did the 5 minute number come from?

Chris Graham

2022-11-21 03:15

administrator   ~0007669

Are we talking about v10 or v11 here? IIRC v11 has a security level option in the Setup Wizard that influence the security settings, including this value - so maybe that's what you're seeing?

Patrick Schmalstig

2022-11-21 03:21

administrator   ~0007671

Not speaking for Adam but I will say for me, v10 has logged me out repeatedly of a confirmed / high security session for the admin / CNS zone after about 5 minutes. It got annoying so I disabled the Require confirmed session option for those zones. v11 does not seem to have this issue.

Adam Edington

2022-11-21 04:30

administrator   ~0007673

Last edited: 2022-11-21 04:33

View 2 revisions

I was talking v10 and pretty much what Patrick said. Staff shouldn't be logged out after 5 mins inactivity and changing the value affects all users (afaik). Haven't looked at v11 since last year, had issues installing but maybe those are fixed now.

Patrick Schmalstig

2022-11-21 08:17

administrator   ~0007676

Last edited: 2022-11-21 08:17

View 2 revisions

In theory, v11 should install now depending on your server set-up. Chris and I have been working on the installer.

Adam Edington

2022-11-22 07:50

administrator   ~0007691

Last edited: 2022-11-22 07:51

Still no luck installing v11 I'm afraid...

"Cannot write to comcode_safelist.txt. File permissions for it (or the directory it is in) have not been set correctly."

Quite a list of files that cannot be written to according to initial install checks, this happens on Step 5. v10 installs without issue on the same Bitnami Wampstack. I imagine you gents are running it from the repo.

Chris Graham

2022-11-22 16:24

administrator   ~0007693

Please can you add a new issue for that Adam. Maybe you and Patrick could have a session and work through it.

Chris Graham

2022-11-22 16:55

administrator   ~0007694

Okay I tested on a v10 install. Default is 1 hour sessions. I completely shut down all tabs so AJAX couldn't keep my session alive and gave it about 20 minutes. I was still logged in.
What may be happening is your IP is changing, and you have the "Enforce IP addresses for sessions" option on. If you use Cloudflare that's likely, as Cloudflare's DNS TTL is 5 minutes, after which you may hit a different Cloudflare IP to proxy your website against.
v11 has automatically got a Cloudflare workaround in place that shows Composr your correct IP. On v10 it has to be manually configured.

Chris Graham

2022-11-22 16:57

administrator   ~0007695

Oh and if we did want a disparity in session lengths between usergroups, we'd actually want admins to have a shorter session (because session hijack for admins is a more serious risk than for a regular member).

Adam Edington

2022-11-22 19:38

administrator   ~0007703

My IP changes, but not that regularly. Do not have Enforce IP on. Not a cloudflare user. If I don't do anything within 5 mins I am logged out. Not a major issue, I've set backdoor_ip so I'm never logged out (unless my IP changes, but that's not a regular occurrence).

Chris Graham

2022-11-23 01:17

administrator   ~0007708

If you go to Admin Zone > Tools > PHPinfo does it show the IP you expect (REMOTE_ADDR)?

Adam Edington

2022-11-23 01:44

administrator   ~0007710

Last edited: 2022-11-23 01:57

View 2 revisions

127.0.0.1 as expected for localhost, but this doesn't match the IP from my ISP. On live website the REMOTE_ADDR matches my actual IP.

When accessing this page (locally or live):-
Your server is failing to connect to itself through it's base URL, with an error code of “404”. Try setting the “Work-around IP forwarding” option. There can be other causes, such as your server blocking web requests to itself. If problems persist, contact your webhost.

Enable 1:-
Similar message but the error code is "".

Chris Graham

2022-11-28 19:24

administrator   ~0007754

Patrick said they could reproduce, but we tried on their server and could not.

Looking at the code I could only think of 4 things that would break this:
1) Some kind of browser extension/feature clicking the log out button secretly for you (I wouldn't put it past some web accelerator plugins, if you have one)
2) An unreliable persistent cache that is reverting to an older version of the sessions list. If you have the persistent cache enabled, you could try disabling it. $SITE_INFO['use_persistent_cache'] = '0'; in _config.php
3) IP address changing (which I know you say is not happening). If you are logged out you could see if the REMOTE_ADDR setting is different in phpinfo when you log back in.
4) Something like a browser extension messing with the session cookie in your browser, clearing it out.

Issue History

Date Modified Username Field Change
2022-11-18 19:16 Adam Edington New Issue
2022-11-21 03:14 Chris Graham Note Added: 0007668
2022-11-21 03:15 Chris Graham Note Added: 0007669
2022-11-21 03:21 Patrick Schmalstig Note Added: 0007671
2022-11-21 04:30 Adam Edington Note Added: 0007673
2022-11-21 04:33 Adam Edington Note Edited: 0007673 View Revisions
2022-11-21 08:17 Patrick Schmalstig Note Added: 0007676
2022-11-21 08:17 Patrick Schmalstig Note Edited: 0007676 View Revisions
2022-11-21 23:50 Adam Edington Product Version 11 alpha1 => 10.0.43
2022-11-22 07:50 Adam Edington Note Added: 0007691
2022-11-22 07:51 Adam Edington Note Edited: 0007691
2022-11-22 07:51 Adam Edington Note Revision Dropped: 7691: 0003432
2022-11-22 07:52 Adam Edington Note Revision Dropped: 7691: 0003433
2022-11-22 16:24 Chris Graham Note Added: 0007693
2022-11-22 16:55 Chris Graham Note Added: 0007694
2022-11-22 16:56 Chris Graham Assigned To => Chris Graham
2022-11-22 16:56 Chris Graham Status non-assigned => closed
2022-11-22 16:56 Chris Graham Resolution open => no change required
2022-11-22 16:57 Chris Graham Note Added: 0007695
2022-11-22 19:35 Adam Edington Note View State: 0007691: public
2022-11-22 19:38 Adam Edington Note Added: 0007703
2022-11-23 01:17 Chris Graham Note Added: 0007708
2022-11-23 01:44 Adam Edington Note Added: 0007710
2022-11-23 01:47 Adam Edington Note Edited: 0007710
2022-11-23 01:54 Adam Edington Note Edited: 0007710
2022-11-23 01:55 Adam Edington Note Edited: 0007710 View Revisions
2022-11-23 01:56 Adam Edington Note Revision Dropped: 7710: 0003446
2022-11-23 01:56 Adam Edington Note Revision Dropped: 7710: 0003447
2022-11-23 01:56 Adam Edington Note Revision Dropped: 7710: 0003448
2022-11-23 01:56 Adam Edington Note Edited: 0007710
2022-11-23 01:57 Adam Edington Note Edited: 0007710 View Revisions
2022-11-23 01:57 Adam Edington Note Revision Dropped: 7710: 0003450
2022-11-28 19:24 Chris Graham Note Added: 0007754