In What Situations Does EE Set Cookies?
Posted: 23 February 2010 05:39 PM   [ Ignore ]  
Summer Student
Total Posts:  12
Joined  01-09-2010

I’m looking at using EE for a client with very stringent privacy requirements.  No cookies should be set on any part of the website for users simply browsing through the site.  (This *excludes* users who need access to the admin area.)

Does EE set any cookies for any reason when a user browses through an EE website?  If so, can those cookies be disabled?

Profile
 
 
Posted: 24 February 2010 11:52 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

Hi, Brettro,

You are able to set “sessions only” for the front-end which should not set any cookies.  I would double check this, however, and get back to you.

 Signature 
Profile
MSG
 
 
Posted: 24 February 2010 03:44 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

Hi, Brettro,

Alright, here’s the low-down.  Even with “sessions only” set, ExpressionEngine sets some cookies:

* exp_last_visit
* exp_last_activity

* exp_tracker also is set and expires at the end of the session, but the other two will remain.

Changing this behavior would require a hack to the core files.

 Signature 
Profile
MSG
 
 
Posted: 26 February 2010 05:07 PM   [ Ignore ]   [ # 3 ]  
Summer Student
Total Posts:  12
Joined  01-09-2010

Hey Lisa,

Thank you for the follow-up!  Are these cookies set when a random user surfs an EE managed website? Or are they set when a user logs in to the admin area?  I just want to clarify so I’m sure I understand.

Thanks!!

Profile
 
 
Posted: 26 February 2010 05:31 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

The cookies mentioned are for any visitor, even logged out.

 Signature 
Profile
MSG
 
 
Posted: 27 February 2010 03:07 PM   [ Ignore ]   [ # 5 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2607
Joined  08-28-2003
Brettro - 23 February 2010 10:39 PM

I’m looking at using EE for a client with very stringent privacy requirements.  No cookies should be set on any part of the website for users simply browsing through the site.

That’s an interesting requirement. It’s been many years since I ran into a client with such concerns. Cookies are about as benign as you can get. What’s their reasoning?

 Signature 

ronnymac
———
Ron McElfresh
Honolulu, HI
———
From EE to WP | Hobby Site | Newer Hobby Site | Friend’s Site | Another Friend’s Site

Profile
 
 
Posted: 27 February 2010 03:13 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  12
Joined  01-09-2010

It’s a U.S. government client and the privacy requirements for federal websites are stringent.  More clearly, session cookies are allowed, but persistent cookies are not without a justification which is published, reviewed, and renewed annually.

Profile
 
 
Posted: 27 February 2010 03:36 PM   [ Ignore ]   [ # 7 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2607
Joined  08-28-2003
Brettro - 27 February 2010 08:13 PM

It’s a U.S. government client and the privacy requirements for federal websites are stringent.  More clearly, session cookies are allowed, but persistent cookies are not without a justification which is published, reviewed, and renewed annually.

Interesting.

This dates back to 1999 and a government policy was issued banning cookies—except when it would be OK and approval granted. So much for the ban. Now the government willing to visit the issue again and may remove the ban (thanks to a CIO who appears to know something about the technology of cookies).

 Signature 

ronnymac
———
Ron McElfresh
Honolulu, HI
———
From EE to WP | Hobby Site | Newer Hobby Site | Friend’s Site | Another Friend’s Site

Profile
 
 
Posted: 01 March 2010 01:09 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  12
Joined  01-09-2010
Lisa Wess - 24 February 2010 08:44 PM

Changing this behavior would require a hack to the core files.

Lisa,

When you say it would require a hack to the core files, is this something that I can actually do? I realize a hack is not desirable, but I would hate to have to remove EE from consideration because of my cookie requirements.  It is, in my opinion, the best option out there.

Profile
 
 
Posted: 01 March 2010 01:13 PM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

Hi, Brettro - the source code is not encrypted (except in the 2.0 Trial); it’s just PHP.  So certainly you can modify that code; but it can affect your ability to upgrade, and your ability to receive support.  You would also need to track your code modifications to re-apply them after an upgrade.

 Signature 
Profile
MSG
 
 
Posted: 01 March 2010 04:41 PM   [ Ignore ]   [ # 10 ]  
Summer Student
Total Posts:  12
Joined  01-09-2010

Lisa, thank you so much for your quick and helpful replies!  Hopefully this will be my last question.  Based on the cookie’s names, I am assuming that they are set for use by the Statistics module to help determine who might be signed in online and for other basic tracking statistics.  Can you confirm that for me?  Or, if they aren’t used for that purpose, explain what they are used for?

Thanks so much!!

Profile
 
 
Posted: 01 March 2010 04:48 PM   [ Ignore ]   [ # 11 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

* exp_last_visit
* exp_last_activity

This stores a date/time stamp for use, yes, in items like the online users list.

* exp_tracker

This handles items like login form redirects (if you don’t set it, should go back 2 pages).  That sort of thing.

It is really basic information, you can check the contents by examining the cookies on your machine.

 Signature 
Profile
MSG
 
 
Posted: 02 March 2010 01:08 PM   [ Ignore ]   [ # 12 ]  
Summer Student
Total Posts:  12
Joined  01-09-2010

Lisa, would a better-than-a-hack approach be to build a plug-in that changes the persistent cookies to session cookies?  Is that even a possibility??

Profile
 
 
Posted: 02 March 2010 01:27 PM   [ Ignore ]   [ # 13 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  26092
Joined  05-14-2004

Hi, Brettro - I’m not sure an add-on can make that change.  Here are our Dev Docs.

If one can, it would be an extension to modify EE’s behavior.  I think it’s likely you’ll need a hack for this though.

 Signature 
Profile
MSG
 
 
Posted: 16 March 2010 12:13 PM   [ Ignore ]   [ # 14 ]  
Summer Student
Total Posts:  5
Joined  03-13-2010

what can we do to delete these cookies ?

Profile
 
 
Posted: 16 March 2010 02:58 PM   [ Ignore ]   [ # 15 ]  
Chancellor's Fellow
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33338
Joined  05-15-2004

There is no official and supported solution. You would have to modify EE’s sources to achieve that. If you only want to delete them, that’s easy, they are just standard cookies, but they will be set again the next time you visit an EE powered site.

Profile
MSG