Turning off session cookies - how?

smooresonetrics's picture
smooresonetrics
Wed, 08/22/2018 - 11:59
#1
Turning off session cookies - how?

My client is hoting their site at Acquia, and Acquia have run a preliminary test suite on our new build, pre-launch.

One of the issues they identified is a server-side cookie that's being set by MD Megamenu.
This cookie is completely blocking Varnish caching - and since it's in the menu, it does that on every page (Varnish will not cache a page with a cookie set).

Is it possible to disable this mechanism, either through the admin interface or by patching the module?

Failing this I will have to abandon MD Megamenu and rewrite the site menu in Superfish, so I'd appreciate a solution.
Thanks

cindy's picture
cindy
Thu, 08/23/2018 - 22:46

Hello

Which version are you using? For Drupal7 or Drupal8?

smooresonetrics's picture
smooresonetrics
Fri, 08/24/2018 - 12:44

D8.

cindy's picture
cindy
Mon, 08/27/2018 - 00:58

Hello,

Our Megamenu does not create cookie at frontend 

You please send us some screenshots of the issue

smooresonetrics's picture
smooresonetrics
Wed, 08/29/2018 - 11:13

Here's the report from Acquia's testing (sorry the formatting is a little weird):

PS I've since rewritten this menu by hand to allow for load testing to proceed, so the question is more academic as of now - but I think you'd want to address it.

SESSION cookies being created for anonymous users

SESSION cookies cause requests to bypass the Varnish cache. The following anonymous sessions were identified:

---
source: _sf2_meta|a:3:{s:1:"u";i:1534256812;s:1:"c";i:1534256812;s:1:"l";s:7:"2000000";}menuboxSettings|a:9:{s:8:"settings";a:5:{s:4:"main";a:2:{s:8:"settings";a:17:{s:4:"type";s:8:"standard";s:4:"skin";s:7:"default";s:10:"skin_color";s:7:"color-1";s:16:"trigger_override";s:5:"hover";s:10:"hover_time";i:0;s:13:"enable_sticky";b:0;s:13:"sticky_offset";i:0;s:14:"show_scroll_up";b:0;s:20:"enable_arrow_desktop";b:1;s:14:"animation_type";s:6:"fadeup";s:18:"animation_duration";i:300;s:13:"enable_mobile";b:1;s:6:"m_type";s:8:"standard";s:16:"responsive_width";s:6:"1100px";s:14:"mobile_trigger";s:5:"click";s:19:"enable_arrow_mobile";b:1;s:25:"mobile_animation_duration";i:300;}s:5:"title";s:4:"Main";}s:8:"menu_bar";a:4:{s:8:"settings";a:3:{s:9:"container";s:3:"nav";s:9:"fullwidth";b:1;s:13:"menubar_width";s:5:"768px";}s:5:"title";s:8:"Menu bar";s:8:"selector";s:18:".awemenu-container";s:5:"style";a:1:{s:6:"normal";a:1:{s:4:"font";a:4:{s:5:"color";a:1:{s:2:"xl";s:7:"#005596";}s:4:"size";a:1:{s:2:"xl";s:4:"16px";}s:5:"align";a:1:{s:2:"xl";s:4:"left";}s:6:"enable";a:1:{s:2:"xl";b:1;}}}}}s:9:"top_items";a:3:{s:8:"settings";a:2:{s:10:"text_align";s:7:"default";s:9:"item_type";s:9:"text-only";}s:5:"title";s:9:"Top items";s:8:"selector";s:30:"ul.awemenu > .awemenu-item > a";}s:12:"mega_submenu";a:3:{s:8:"settings";a:4:{s:9:"fullwidth";b:1;s:10:"mega_width";i:600;s:10:"set_height";s:4:"auto";s:11:"mega_height";i:400;}s:5:"title";s:12:"Mega submenu";s:8:"selector";s:17:".awemenu-megamenu";}s:14:"flyout_submenu";a:3:{s:8:"settings";a:3:{s:14:"dropdown_width";i:250;s:10:"text_align";s:7:"default";s:9:"item_type";s:9:"text-only";}s:5:"title";s:14:"Flyout submenu";s:8:"selector";s:31:".awemenu-item .awemenu-item > a";}}s:5:"title";s:8:"Menu Box";s:11:"defaultPart";s:8:"menu_bar";s:11:"machineName";s:7:"menubox";s:11:"contentType";s:5:"Menus";s:12:"customStyles";s:31:"{"id":"","classes":"","css":""}";s:13:"renderedStyle";a:3:{s:6:"styles";a:1:{s:18:"menu_bar.normal.xl";a:3:{s:4:"size";s:15:"font-size:16px;";s:5:"align";s:16:"text-align:left;";s:10:"font-color";s:14:"color:#005596;";}}s:5:"flags";a:0:{}s:6:"option";a:0:{}}s:17:"renderedAnimation";a:0:{}s:3:"cid";s:4:"c149";}
date_time: 2018-08-14:14:26
---
source: _sf2_meta|a:3:{s:1:"u";i:1534102716;s:1:"c";i:1534102716;s:1:"l";s:7:"2000000";}menuboxSettings|a:9:{s:8:"settings";a:5:{s:4:"main";a:2:{s:8:"settings";a:17:{s:4:"type";s:8:"standard";s:4:"skin";s:7:"default";s:10:"skin_color";s:7:"color-1";s:16:"trigger_override";s:5:"hover";s:10:"hover_time";i:0;s:13:"enable_sticky";b:0;s:13:"sticky_offset";i:0;s:14:"show_scroll_up";b:0;s:20:"enable_arrow_desktop";b:1;s:14:"animation_type";s:6:"fadeup";s:18:"animation_duration";i:300;s:13:"enable_mobile";b:1;s:6:"m_type";s:8:"standard";s:16:"responsive_width";s:6:"1100px";s:14:"mobile_trigger";s:5:"click";s:19:"enable_arrow_mobile";b:1;s:25:"mobile_animation_duration";i:300;}s:5:"title";s:4:"Main";}s:8:"menu_bar";a:4:{s:8:"settings";a:3:{s:9:"container";s:3:"nav";s:9:"fullwidth";b:1;s:13:"menubar_width";s:5:"768px";}s:5:"title";s:8:"Menu bar";s:8:"selector";s:18:".awemenu-container";s:5:"style";a:1:{s:6:"normal";a:1:{s:4:"font";a:4:{s:5:"color";a:1:{s:2:"xl";s:7:"#005596";}s:4:"size";a:1:{s:2:"xl";s:4:"16px";}s:5:"align";a:1:{s:2:"xl";s:4:"left";}s:6:"enable";a:1:{s:2:"xl";b:1;}}}}}s:9:"top_items";a:3:{s:8:"settings";a:2:{s:10:"text_align";s:7:"default";s:9:"item_type";s:9:"text-only";}s:5:"title";s:9:"Top items";s:8:"selector";s:30:"ul.awemenu > .awemenu-item > a";}s:12:"mega_submenu";a:3:{s:8:"settings";a:4:{s:9:"fullwidth";b:1;s:10:"mega_width";i:600;s:10:"set_height";s:4:"auto";s:11:"mega_height";i:400;}s:5:"title";s:12:"Mega submenu";s:8:"selector";s:17:".awemenu-megamenu";}s:14:"flyout_submenu";a:3:{s:8:"settings";a:3:{s:14:"dropdown_width";i:250;s:10:"text_align";s:7:"default";s:9:"item_type";s:9:"text-only";}s:5:"title";s:14:"Flyout submenu";s:8:"selector";s:31:".awemenu-item .awemenu-item > a";}}s:5:"title";s:8:"Menu Box";s:11:"defaultPart";s:8:"menu_bar";s:11:"machineName";s:7:"menubox";s:11:"contentType";s:5:"Menus";s:12:"customStyles";s:31:"{"id":"","classes":"","css":""}";s:13:"renderedStyle";a:3:{s:6:"styles";a:1:{s:18:"menu_bar.normal.xl";a:3:{s:4:"size";s:15:"font-size:16px;";s:5:"align";s:16:"text-align:left;";s:10:"font-color";s:14:"color:#005596;";}}s:5:"flags";a:0:{}s:6:"option";a:0:{}}s:17:"renderedAnimation";a:0:{}s:3:"cid";s:4:"c149";}
date_time: 2018-08-12:19:38

cindy's picture
cindy
Thu, 08/30/2018 - 05:34

Please check your email for updated file

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.