O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

B.3. Cookies

One additional technique for HTTP interaction is the client-side cookies. These are name/value pairs stored on the client and meant to persist between HTTP requests. The server can push cookies down to the client and then check their values on a later request. Cookies are typically used to maintain session information.

A server application will set a cookie using the set-cookie header. An example use might be:

set-cookie: username=jsmith; expires=Tuesday, 
04-Jun-2002 00:00:00 GMT; path=/MembersOnly; domain=www.voicexml.org

This causes the client to store a cookie named username with a value jsmith. Each time a cookie-compliant HTTP client makes an HTTP request, it will check the URL to see if it begins with http://www.voicexml.org/MembersOnly ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required