Joe Posted October 18, 2013 Share Posted October 18, 2013 Hi, This is related to my post http://processwire.com/talk/topic/4747-http-response-header-partly-added-by-processwire/ - However I´ve decided to separate this question from the headers issue I am asking about there. What I want to know: for a simple presentation site without user interaction, how do I set it so no session is started / no cookies are sent when a visitor looks at a site (public pages)? Because apparently this happens automatically and for a basic site I would think this is only needed when editing the site. I´ve been trying to change /site/config.php but so far no luck. Searched for "sessions" here but couldn´t really find an answer. Thanks Link to comment Share on other sites More sharing options...
ryan Posted October 20, 2013 Share Posted October 20, 2013 There isn't a way to turn it off, as it would render PW's $session variable useless, and break anything that used $session. Though if using ProCache, it bypasses ProcessWire and sessions, on any cached pages. 1 Link to comment Share on other sites More sharing options...
Joe Posted October 21, 2013 Author Share Posted October 21, 2013 (edited) Thank you Ryan! It´s just that a cookie being sent automatically might pose a legal problem depending on local legislation. I am no expert on this, but I understand in the European Union there is a general cookie-guideline and different ways this guideline is handled in different countries. It amounts to having to give visitors an opt-out or opt-in option (depending on local legislation) to expressly allow or disallow a website to set cookies. I am not sure if this rule really applies to session cookies. Still trying to find out more. But if it were so, then there might be a problem if cookies cannot be disabled. P.S.: Looked some more: the laws seem a bit fuzzy to me. Probably session cookies are not a problem here, but not completely sure. It would be good to find out definitely (and maybe still come up with a way of not sending them for sites that don´t use $session). Edited October 21, 2013 by Joe Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now