If you are testing this in the same browser when logged in and logged out, the cookie is still there (that’s the point of cookie), and logged out users will see the message that they voted because there is a cookie about that.
If you test with localhost, use multiple browsers to check out.
This reply was modified 4 years, 9 months ago by Milan Petrovic.