Suddenly logging out of pages

Permalink
Hi - I have an issue where I can log in to C5 fine but on certain pages I'm logged out. I'm logging in as a super user so there shouldn't be any permissions problem. Basically there are certain pages that log me out completely of the edit area so I have to log back in. If I visit the page via the sitemap I can get into the page however. Has anyone come across this or can advise what to do?

chassa2556
View Replies:
Remo replied on at Permalink Reply
Remo
Yes, we've had that issue before. The reasons for that:

1. There's no BASE_URL, you're editing the site likehttp://site.com but when viewing the URL ishttp://www.site.com. Different URL different session.

2. Cache, try to disable (not just clear) the override cache and possibly all other caches too. Just for testing.
chassa2556 replied on at Permalink Reply
chassa2556
Thanks Remo - I don't think its the base_url as the URL isn't changing. Is there a way of setting this just in case?
Remo replied on at Permalink Reply
Remo
Sure, open config/site.php and insert this line:

define('BASE_URL', 'http://www.site.com');
gmatik replied on at Permalink Reply
gmatik
Hi. This happens to me when i'm anywhere in the dashboard and when i hit the "return to page" -button. Base url is ok, and i turned off the cache with no results. Any suggestions for what i should try next?
madesimplemedia replied on at Permalink Reply
madesimplemedia
I have a client who's reporting this with C5.7, she hits the back arrow to go back to the front end from the dashboard and then she is logged out.
madesimplemedia replied on at Permalink Reply
madesimplemedia
I have a client who's reporting this with C5.7, she hits the back arrow to go back to the front end from the dashboard and then she is logged out.
AndyJ replied on at Permalink Reply
hi - may not be the same thing but I recently had this happen with a client website that is hosted on a UK based shared hosting platform. The host was using cloudlinux/cpanel and had 'silently' installed unixy varnish which defaulted to on. After I realised what the issue was I was able to switch it off in the control panel.

Sounds like something is interfering with session stickiness, if you can't get to the bottom of it - check the headers that re being returned, ask your host if they've changed anything while you check everything else. You could also switch to db based sessions to test if the issue is filesystem based.
madesimplemedia replied on at Permalink Reply
madesimplemedia
Hi

Sorry only just seen this reply. If I log in using my customers login it's fine, it just seems to be her machine. If i had the issue you are talking about, would I notice it when editing the site on all devices, or just one?

How do I check the headers that are being returned?

Dave