We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Control panel Session Type

How Do I?

web@smrs.co.uk's avatar
[email protected]
4 posts
10 years ago
web@smrs.co.uk's avatar [email protected]

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

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
10 years ago
Robin Sowell's avatar Robin Sowell

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.

       
web@smrs.co.uk's avatar
[email protected]
4 posts
10 years ago
web@smrs.co.uk's avatar [email protected]

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

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
10 years ago
Robin Sowell's avatar Robin Sowell

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?

       
web@smrs.co.uk's avatar
[email protected]
4 posts
10 years ago
web@smrs.co.uk's avatar [email protected]

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

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
10 years ago
Robin Sowell's avatar Robin Sowell

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.

       
web@smrs.co.uk's avatar
[email protected]
4 posts
10 years ago
web@smrs.co.uk's avatar [email protected]

Thank you for your reply. The URL is http://staging.co-operativegroupjobs.co.uk/admin/index.php?/cp/login&return;=

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
10 years ago
Robin Sowell's avatar Robin Sowell

Sorry for the delayed response- just wanted to note it does look like you’ve got things working!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.