Bakery server

Report a typo

Configure cookies in the Sessions installation block so that:

  • The "pie" cookie has 8000 seconds maxAge and is sent when the client request "ws://www.bakery.com/bake_a_pie"
  • The "cake" cookie has 9000 seconds maxAge and is sent when the client request "ws://www.bakery.com/make_a_cake"

Attributes should be arranged in the following order: path, domain and maxAge. Also, set the "pie" cookie first, and the "cake" cookie second.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                }
              
                cookie.domain = "bakery.com"
              
                }
              
                cookie<Pie>("pie") {
              
                cookie.maxAgeInSeconds = 9000
              
                cookie.maxAgeInSeconds = 8000
              
                cookie.domain = "bakery.com"
              
                cookie.path = "/make_a_cake"
              
                cookie<Cake>("cake") {
              
                cookie.path = "/bake_a_pie"
              
                install(Sessions) {
              
                }
              
___

Create a free account to access the full topic