Class Cookies

public class Cookies
extends Object
Provides access to browser cookies stored on the client. Because of browser restrictions, you will only be able to access cookies associated with the current page's domain.

Methods

getCookie(String)Gets the cookie associated with the given key.

Method Detail

getCookie

public String getCookie(String key)
Gets the cookie associated with the given key.

Parameters

key
the key of the cookie to be retrieved

Return Value

the cookie's value.