System Class
Username:  
Password:
  > Home
> User Guide
v Reference
    > Introduction
    > CROFT
    v BEE Variables
       v BEE Variable Name
          o General/Object Class
          o Special Class
          o System Class
       o BEE Variable Value
       > BEE Conversions
    > BEE Syntax
    > BEE Commands
    > Database Operation
    > Content Management
    > Objects and Classes
    > Interface with others
    o Glossary
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Reference >> BEE Variables >> BEE Variable Name >> System Class <=  =>      <  1  2  3  4  5  6  7  8  9  10  11  12  >  
cookie System Class

n        cookie is a persistent value that can be kept on the client's machine across multiple client sessions.  You can set an expiry time on a cookie so its value will persist until the time is up, regardless of whether the user has closed the browser or not.

Variable

Value/meaning

Access

cookie%name:

or cookie%name:value

The value of the cookie being stored in the client's machine for later retrieval.  (Although cookie values are supposed to be encoded, this is done implicitly in the system so you are free to use even white-spaces, semi-colon and comma.

Accessing the "value" element of cookie%name will trigger the cookie operation.  (Other cookie elements are no more than those of an "ordinary" class, except that their values are used in the cookie operation when the "value" element is being accessed).

You can only set or clear a cookie's value before the first display (even before the <html> tag).  Also, the change does not take effect until after the page run.  (For the very page run, you need to refer to the source of the new value direct.)

get
set

cookie%name:expire

The expiry time (on the client's machine) in timestamp format (seconds since 1 Jan, 1970 GMT)

get
set

cookie%name:path
cookie%name:domain
cookie%name:secure

The "path" parameter of the cookie
The "domain" parameter of the cookie
non-zero if SSL is required

get
set

 

"session" class is implemented with a cookie internally but the "session" class and the "cookie" class are completely independent.  They only happen to be implemented by a common technology called "cookie".

 

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd