Post by WaxedPerfection » Wed Aug 14, 2019 3:46 pm

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
Last edited by WaxedPerfection on Wed Aug 14, 2019 7:56 pm, edited 1 time in total.

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by paulfeakins » Wed Aug 14, 2019 5:58 pm

Probably a session issue indeed, what's the content of your php.ini file?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by WaxedPerfection » Wed Aug 14, 2019 6:07 pm

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

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by paulfeakins » 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(); ?>

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by WaxedPerfection » Wed Aug 14, 2019 6:38 pm

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

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by paulfeakins » 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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by WaxedPerfection » Wed Aug 14, 2019 6:49 pm

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 :)

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm

Post by letxobnav » 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.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by WaxedPerfection » Wed Aug 14, 2019 7:54 pm

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.

https://www.waxedperfection.co.uk/ Car Detailing Product Blog's and Review's


Active Member

Posts

Joined
Sun Mar 26, 2017 8:23 pm
Who is online

Users browsing this forum: moreduff and 268 guests