Page 1 of 1

Keep Getting logged out Admin and Store End OC 3.0.2.0 [SOLVED]

Posted: Wed Aug 14, 2019 3:46 pm
by WaxedPerfection
Hi All,

I hope you are all.

Issue: when working in the admin area all seems fine, if i move to a new tab within a Chrome / Firefox, and then return to the admin section i find I’m logged out and sometimes im getting logged out during changing from section to section within the admin area
Tested in at home and at work, so two different PC and window 8 and 10, so I’m thinking it more a server issue.

Also when i try to create a new account (front end) i get a message within the admin and the email as normal, but when trying to log in the page just seems to refresh (front end).

I have a feeling that it may be a session issue with the host, but have no idea how to explain this issue to them in terms of a way they will understand as they are very much wordpress

OC3.0.2.0
Fresh install as last night
No mods // OCmods or Vqmods
Default theme
no mods to the php.ini or config files.
No error logged in admin, error logs or on the server.

Thank you for your time.

WP

Re: Keep Getting logged out OC 3.0.2.0

Posted: Wed Aug 14, 2019 5:58 pm
by paulfeakins
Probably a session issue indeed, what's the content of your php.ini file?

Re: Keep Getting logged out OC 3.0.2.0

Posted: Wed Aug 14, 2019 6:07 pm
by WaxedPerfection
paulfeakins wrote:
Wed Aug 14, 2019 5:58 pm
Probably a session issue indeed, what's the content of your php.ini file?
Hi Paul, thank you for your reply.

Code: Select all

magic_quotes_gpc = Off
register_globals = Off
default_charset = UTF-8
memory_limit = 64M
max_execution_time = 36000
upload_max_filesize = 999M
safe_mode = Off
mysql.connect_timeout = 20
session.auto_start = Off
session.use_only_cookies = On
session.use_cookies = On
session.use_trans_sid = Off
session.cookie_httponly = On
session.cookie_lifetime = 172800
session.gc_maxlifetime = 172800
allow_url_fopen = On
date.timezone="GMT"
;display_errors = 1
;error_reporting = E_ALL

Re: Keep Getting logged out OC 3.0.2.0

Posted: Wed Aug 14, 2019 6:20 pm
by paulfeakins
All looks ok, and are the session lifetime related ones reflected correctly if you create a PHP file that just shows php info:

Code: Select all

<?php phpinfo(); ?>

Re: Keep Getting logged out OC 3.0.2.0

Posted: Wed Aug 14, 2019 6:38 pm
by WaxedPerfection
paulfeakins wrote:
Wed Aug 14, 2019 6:20 pm
All looks ok, and are the session lifetime related ones reflected correctly if you create a PHP file that just shows php info:

Code: Select all

<?php phpinfo(); ?>
all seems ok, but its a little over my head.
https://www.evokecarwax.co.uk/phpinfo.php

Re: Keep Getting logged out OC 3.0.2.0

Posted: Wed Aug 14, 2019 6:45 pm
by paulfeakins
WaxedPerfection wrote:
Wed Aug 14, 2019 6:38 pm
all seems ok, but its a little over my head.
https://www.evokecarwax.co.uk/phpinfo.php
It does seem ok. Best not to have that public for too long though as some info there could potentially be used by hackers.

It could be worth submitting a ticket with your web host or asking for paid help in the Commercial Support forum here, as it could require logging in and trying some things to track down. We also provide estimates for this type of work.

Re: Keep Getting logged out OC 3.0.2.0

Posted: Wed Aug 14, 2019 6:49 pm
by WaxedPerfection
paulfeakins wrote:
Wed Aug 14, 2019 6:45 pm
WaxedPerfection wrote:
Wed Aug 14, 2019 6:38 pm
all seems ok, but its a little over my head.
https://www.evokecarwax.co.uk/phpinfo.php
It does seem ok. Best not to have that public for too long though as some info there could potentially be used by hackers.

It could be worth submitting a ticket with your web host or asking for paid help in the Commercial Support forum here, as it could require logging in and trying some things to track down. We also provide estimates for this type of work.
Thank you again Paul you have been a great help. i will speak with my host and see what they say. im sure it will be just a tick in a box im missing.

and removed thank you :)

Re: Keep Getting logged out OC 3.0.2.0

Posted: Wed Aug 14, 2019 7:27 pm
by letxobnav
please understand that if you set session.cookie_lifetime to any other value than 0, that time in seconds is final.
session.cookie_lifetime = 172800
means that all sessions will end in 48 hours no matter what, there is no renewal on that lease regardless of browser activity and the expiration is set relative to the server time, not the time in the client's browser.

if you set it to 0, the session cookie will be valid until you close the browser which is what it should be.

Re: Keep Getting logged out OC 3.0.2.0

Posted: Wed Aug 14, 2019 7:54 pm
by WaxedPerfection
letxobnav wrote:
Wed Aug 14, 2019 7:27 pm
please understand that if you set session.cookie_lifetime to any other value than 0, that time in seconds is final.
session.cookie_lifetime = 172800
means that all sessions will end in 48 hours no matter what, there is no renewal on that lease regardless of browser activity and the expiration is set relative to the server time, not the time in the client's browser.

if you set it to 0, the session cookie will be valid until you close the browser which is what it should be.
Wow, Thank you so much, i changed the value to 0 from 172800 and bingo logged in first time. (front end)

I will see how i get on, but thank you and thank you paul, your support is fantastic.