Ben Lobaugh Online

I think, therefore I am. I am, therefore I sail

Tag: cookies

Grilled Cookies on the BBQ? Putting the Yoshi Grill Mat to the Test

For Mother’s Day, my mother gave me a set of Yoshi Copper Grill Mats. The mats are claimed to be able to cook ANYTHING without leaving a mess, but can it stand up to chocolate chip cookies?

Lets put it to the test!

Want your own Yoshi Copper Grill Mat? https://www.amazon.com/Yoshi-Copper-Grill-Bake-2-Pack/dp/B07DNGWZ5D/?tag=blobaugh-20

Cookies disappear after adding Set-Cookies in .htaccess? Here is how to get them back

I needed to set a cookie via .htaccess, to ensure it was always in the browser, regardless of what the website was doing. Setting a cookie is rather easy, it will look similar to:

Header set Set-Cookie "cookieName=value; Expires=Wed, 15 May 2222 07:28:00 GMT"

The next morning I attempted to login to the site and could not. It turned out the login cookies were not being set. The issue was insidious. Re-read the line above, at first glance it seems fine when you want to set a cookie, however if there are other cookies that need to run you need to add the cookie.

This three letter change resolved the issue and allows all the other cookies to operate properly:

Header add Set-Cookie "siglock=hello-world; Expires=Wed, 15 May 2222 07:28:00 GMT"