ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

disabling cookies

August 13, 2014 11:12am

Subscribe [1]
  • #1 / Aug 13, 2014 11:12am

    okra

    1 posts

    I’m investigating putting a caching proxy in front our EE site (nginx or varnish).  The site is entirely static with no user logins, no forum, etc.  In order to properly cache all the pages, I need to disable all cookies (for non-control panel pages).

    What is the best way to accomplish this?

    I’m testing our site with ExpressionEngine 2.9 at the moment.  I tried the Cookie Consent module to see if it might work for this purpose, but it prevented me from logging into the Control Panel.  I got a “This form is expired” error when attempting to login.  Is the Cookie Consent module compatible with EE 2.9?  Will the cookie consent module actually allow me to disable all cookies for any static page (without worrying about the consent piece)?

    I was easily able to disable the last_activity, last_visit, and tracker cookies by modifying the source files (not ideal).  However, it looks like there is also a csrf_token cookie which is being set despite the fact that I have both:
    $config[‘csrf_protection’] = FALSE;
    and
    $config[‘disable_csrf_protection’] = ‘y’;
    in my config.php file

    Anyone successfully disabled ALL cookies for EE 2.9?

    Thanks.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases