Concept : Understanding Cookies

Page Status: Beta
Jump to: navigation, search

Back to Concepts and HOW TOs

Contents

[edit] Description 

A cookie is arbitrary data that can be stored by an application. A cookie consists of a name, an arbitrary value, and an expiration date. If the expiration date is set to a date/time in the future, then the cookie is “persistent” and can be retrieved until it expires. If the expiration date occurs in the past, then the cookie is a “session” cookie and does not persist beyond the current session.

You manage cookies with the following two functions (accessed through the AppGlobal class): 

You can remove cookies by using setCookie to set the cookie's value to null or to set the cookie's expiration date to some time in the past.

[edit] See Also

Using Cookies

[edit] Tags


Log in if you would like to rate this page.
    Copyright © 2005 - 2008 Bungee Labs. All rights reserved.