Session Variables and Cookies

A session variable is a name-value pair maintained for the duration of the session by the GAS. A session variable is accessible from the user agent, the application, and the GWC snippet-based rendering engine.

In order to make a session variable persistent between two runs of an application, you must store the session variable in an HTTP cookie. The cookie is a text-only string containing the name-value pair and is saved into the memory of your browser. The cookie is then sent back to the GAS on all future requests for the application.