important spots before the complaints start
If you have other scripts/components that are dropping cookies (like Google analytics) this plugin will not help there.
If a user has no session cookie, is not posting a request, or is not logged in, then the session is not kept alive beyond the page request. So no cookie is ever generated.
but does it drop a cookie to prevent cookies?
The main use of this plugin is just to try and help you make your site compliant with the European Electronic Communications Framework
Yes, registration is required to download the component. If your having problems registering there might be a bug there.
Joomla will create the session when it starts, will call setcookie to store the cookie at the begging of the script. The plugin runs in onAfterRender it will look to see if the session is needed. If it is not it will call setcookie again with the same name but now a negative time. This will update the cookie value (assuming headers have not been sent) and change the value about the cookie from create to now delete.
The browser will only ever see the delete cookie, so no other cookie is created.
So this should work fine for a clean joomla install.
If people like it and there is more to be done, then I can expand this to be a more complete solution.
If not I can always just drop it and do other work :P
at this point I am not sure if/where it breaks for other people, what else would need to be added to it.
On my site I tested by:
- deleting all the session in the database
- deleting the cookies.
- browsing the site
- checking I had no cookie (if I had any cookies at this point it would be failed, but no cookies)
- logging in to the site (had a cookie at this point)
- log out (cookie removed)
- check cookies (no cookies)
For people who do not know what I am talking about, buried on the previous page I wrote a post pointing to a plugin I wrote. Which you can get from http://www.conquerjoomla.com/cjnocookies.html
I am reposting the link so it is easy for people to try it.
<--- Click to Conquer Joomla!https://twitter.com/#!/nchamilton
<--- Follow me on twitter