Reputation: 1000
I've upgraded Laravel from 4.0 to 4.1. My application sets Cookies, which I also use in javascript. Now they get automatically encrypted, thus not readable anymore in javascript. I can't find how to disable the encryption for particular cookies When I try to set them with PHP setcookie native function, they don't persist.
Is there a solution for this?
Upvotes: 5
Views: 7107
Reputation: 1000
I fixed it setting the cookies with php native function setcookie in the app::after filter. In each request I re-set the cookies because laravel clears them while processing the request.
Upvotes: 1