Hello,
I am having issues with changing Control Panel Session Type. When I change the session type to Cookies and Session ID I am unable to login back to the Admin.
EE v2.9.2
Cheers Gerald
Which option can you login under? If you can login using session id, but not cookies or both, it suggests an issue with your cookies.
In which case, you might see if adding a cookie domain, clearing cookies, then trying again helps.
I can only login under session id. I have changed the session type to Cookie and added cookie domain but i am unable to login again.
The only way I can login is by using Session ID only for Control Panel Session Type.
Thanks
It’s sounding like a cookie issue is the most likely problem. So- when you login with cookies required- does the page just refresh? No errors or anything- right?
Let’s make sure there are no extensions messing with things- so disable extensions in the config
$config['allow_extensions'] = 'n';Then what I’ll generally do- watch the live headers when I try to login- see what it’s setting for the cookies and if anything is wrong- such as domain or the date is bad so the cookie automatically expires.
And one more thing to consider- has this always been broken or did it just start? And if it just started- did anything change?
It looks like its not setting up cookies. Looking at other EE websites, they all set exp_csrf_token, exp_last_activity and exp_last_visit when you go to admin page before login. However, mine does not seem to set up any cookies on headers.
I have always always used Session ID, however when I tried using Assets add-on I was getting 403 Forbidden error. The solution for that is to use both Cookie and Session ID
My first bet would be something off with localization, so cookies are being set to expire in the past- and thus never set. But that’s a bit of a guess. Can you share the frontend url of the site? If it’s doing the same thing, I should be able to take a look at the headers and see what’s happening.
Thank you for your reply. The URL is http://staging.co-operativegroupjobs.co.uk/admin/index.php?/cp/login&return;=
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.