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.
       | 
   
   
   
   
   
   INT_30_DAYS
   <static> <final> Date INT_30_DAYS
   
   A Date representing a day 30 days in the future.
   
   
   
   
   
   VERSION
   <static> <final> Object VERSION
   
   
   
    
PTCookie
PTCookie()
   PTCookie static Object constructor
   
   
   Returns:
     
     New PTCookie Object.  Author Legacy Code   
     
   
   
   daysAway
   <static> Date daysAway(numDays)
   
      Returns a Date object representing a date that is a number of days away from today.
   
   
   
   
   Parameters:
   
     numDays -  the number of days from today  
      
 
   
   
   
   
   
   
   
   
   
   
   
   expire
   <static> void expire(name)
   
      Removes a cookie from the client.
   
   
   
   
   Parameters:
   
     name -  name of the cookie.    
      
 
   
   
   
   
   
   
   
   
   
   get
   <static> String get(name)
   
      Gets a cookie value from the client.
   
   
   
   
   Parameters:
   
     name -  name of the cookie.  
      
 
   
   
   
   
   
   
   
   
   
   
   
   set
   <static> void set(name,value,expires)
   
      Sets a cookie value on the client.
   
   
   
   
   Parameters:
   
     name -  name of the cookie  
      
 
   
     value -  value of the cookie  
      
 
   
     expires -  date after which the cookie will expire    
      
 
   
   
   
   
   
   
   
   
Documentation generated by 
JSDoc on Wed Aug 24 10:17:38 2005