lundi 2 janvier 2017

Laravel cookie unexpected output i.e. encrypted result

I am saving cookie data as this

Cookie::queue(Cookie::make('my_name', 'manash', 120));

and I am retrieving like this

Cookie::get('my_name')

but I am not getting the value as I have stored, instead it is outputting me this value

eyJpdiI6InlcL3VxNklrejlKemxLQ012T0pcL3U1QT09IiwidmFsdWUiOiJpbzRmajVEUU90YkhhdTdpeFNlcURBPT0iLCJtYWMiOiI1MTFiMTk5YjY3ZTczMzI2Nzc1MGI1Mzk3NmU1MjJhYjE3MWRhYWE2OGQ4NWE1Y2Y2NDgyZWQ1YmYxOGQ4OWU1In0=

I think it encrypted, but as per my knowledge it should be automatically decrypted when we use get method. I am using laravel 5.3.28



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire