Support the ongoing development of Laravel.io →
Security Database Testing

I am setting up a store for my client. They use Shopify...

So in order to get login working for customers through the app site I am setting up a 2 point check. Email and a special secret key that I grabbed from the Shopify. I created a database table for the app site and inserted the two fields (email and secret). I also set a cookie via the Laravel cookie queue.

Is there anything special that I have to do in order to compare the two cookies with the two fields in my database?

I wrote a script and it came back true, but I am wanting to double check that the fields are being compared correctly and that it's not just checking if the cookies exist.

Last updated 2 years ago.
0

I did a search and came across this, but to no avail.

09:53 bittyx-work : sjaak_trekhaak: Hey, just to get back to you on that cookie thing - I've realized afterwards that Laravel's CookieJar just makes Symfony Cookies anyway, so instead of doing:

$response->withCookie(Cookie::make('name', 'value'));

You can just do:

$response->withCookie(new Symfony\Component\HttpFoundation\Cookie('name', 'value'));

and it works great (ie. I don't get an encrypted cookie value).

http://api.symfony.com/2.0/Symfony/Component/HttpFoundation/Cookie.html

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Cleanse cleanse Joined 22 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.