Chapter 3, Tasklist I: Persistence

Session IDs

Answer 1:

No, CherryPy will only save the session data to persistent storage if something is written to the session data while preparing a response. If an unknown session ID is received, the application cannot identify the user and will signal that to the client, but it will not store anything in the session data.

Answer 2:

c, because a client that doesn't store cookies will never send a request containing the session ID, the server will generate a new one.

Styling screen elements

Answer 1:

Either leave out the text:false in the options object passed to the button() function or explicitly show it with text:true.

Answer 2:

The<div> element that encloses the<form> element might be wider and an unsuitable background color may show up where the form isn't covering the full width.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.73.175