2024-10-19 11:13:36 +01:00
..
2024-09-06 17:16:13 +01:00
2024-10-19 11:13:36 +01:00
2024-09-06 17:16:13 +01:00

Cookies Example

This example demonstrates how to set and read cookies with Dumbo.

Running the Example

  1. Install dependencies:

    composer install
    
  2. Start the server:

    composer start
    
  3. 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