mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-16 13:50:03 +01:00
Cookies Example
This example demonstrates how to set and read cookies with Dumbo.
Running the Example
-
Install dependencies:
composer install
-
Start the server:
composer start
-
Test it out:
curl -v -c cookies.txt -b cookies.txt http://localhost:8000/cookie
curl -v -b cookies.txt http://localhost:8000/cookie?name=delicious_cookie
curl http://localhost:8000/delete-cookie?name=delicious_cookie