Sunday, April 2, 2017

Cookies in browser console is different than cookies fetch from Laravel

I get two different values from the console and from the Laravel side.

This is how I get from the Laravel side

public function getCookies() {

    $cookies = \Cookie::get();

    dd($cookies);


}

enter image description here

EDIT: It seems the cookies will be automatically decrypted when get function is called. Is there any way I could get the original value of the cookies without getting decrypted?



via geckob

Advertisement