Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to not use encrypted cookies in laravel?

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?

like image 604
Ernie Avatar asked Nov 10 '22 10:11

Ernie


1 Answers

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.

like image 155
Ernie Avatar answered Nov 15 '22 11:11

Ernie