JSJaC

Class JSJaCCookie

Object
   |
   +--JSJaCCookie

class JSJaCCookie


Class representing browser cookies for storing small amounts of data
Defined in JSJaCCookie.js


Field Summary
 string domain
          The cookie's domain
 String name
          This cookie's name
 string path
          The cookie's path
 int secs
          Time in seconds when cookie expires (thus being delete by browser).
 String value
          This cookie's value
 
Constructor Summary
JSJaCCookie(<String> name,<String> value,<int> secs,<String> domain,<String> path)
            Creates a new Cookie
 
Method Summary
 void erase()
           Deletes this cookie
 String getName()
           Gets the name of this cookie
 String getValue()
           Gets the value of this cookie
 Cookie setDomain(<String> domain)
           Sets the domain of this cookie
 Cookie setName(<String> name)
           Sets the name of this cookie
 Cookie setPath(<String> path)
           Sets the path of this cookie
 Cookie setValue(<String> value)
           Sets the value of this cookie
 void write()
           Stores this cookie
<static> String get(<String> name)
           Reads the value for given name from cookies and returns its valued new
<static> Cookie read(<String> name)
           Reads the value for given name from cookies and return new Cookie object
<static> void remove(<String> name)
           Deletes cookie with given name

Field Detail

domain

string domain

name

String name

path

string path

secs

int secs

value

String value

Constructor Detail

JSJaCCookie

JSJaCCookie(<String> name,<String> value,<int> secs,<String> domain,<String> path)

Method Detail

erase

void erase()

getName

String getName()

getValue

String getValue()

setDomain

Cookie setDomain(<String> domain)

setName

Cookie setName(<String> name)

setPath

Cookie setPath(<String> path)

setValue

Cookie setValue(<String> value)

write

void write()

get

<static> String get(<String> name)

read

<static> Cookie read(<String> name)

remove

<static> void remove(<String> name)

JSJaC

Documentation generated by JSDoc on Sun Feb 7 13:21:05 2021