Class PTCookie

Object
   |
   +--PTCookie

class PTCookie


Static class for getting, setting, and expiring cookies on the client.

Usage:	
 	PTCookie.set('defaultcolor', 'red', PTCookie.daysAway(90));
 

Defined in PTUtil.js


Field Summary
<static>  <final> Date INT_30_DAYS
          A Date representing a day 30 days in the future.
<static>  <final> Object VERSION
          
 
Constructor Summary
PTCookie ()
            PTCookie static Object constructor
 
Method Summary
<static> Date daysAway(numDays)
           Returns a Date object representing a date that is a number of days away from today.
<static> void expire(name)
           Removes a cookie from the client.
<static> String get(name)
           Gets a cookie value from the client.
<static> void set(name,value,expires)
           Sets a cookie value on the client.

Field Detail

INT_30_DAYS

<static> <final> Date INT_30_DAYS

VERSION

<static> <final> Object VERSION

Constructor Detail

PTCookie

PTCookie()

Method Detail

daysAway

<static> Date daysAway(numDays)

expire

<static> void expire(name)

get

<static> String get(name)

set

<static> void set(name,value,expires)


Documentation generated by JSDoc on Wed Aug 24 10:17:38 2005