Home | About SQeeL | Document | DownLoad | Mail Japanese
Home > Document > SQeeL Reference

CGI related function

  • Built-in function
  • getcookie()
    Description
    Returns the value of the cookie by specifying a name of a cookie
    The value of the cookie is stored on the client computer. You can set cookies using the setcookie() function.
    Syntax
    ret = getcookie(name)
    Parameters
    name:Cookie name
    Return Value
    string:Cookie
    NULL:Error or cookie
    System Return Value
    ERROR
    0Success
    1Argument error
    11Specified cookie name is not found
    Top‚Ö
    html()
    Description
    Output the specified string to a standard output.
    Syntax
    ret = html(string)
    Parameters
    string:html data
    Return Value
    NULL:Error or printed character string
    string:Printed chracter string
    System Return Value
    ERROR
    0Success
    1Argument error
    2Output error
    Top‚Ö
    setcookie()
    Description
    Sets the name and value of the cookie
    The value of the cookie is stored on the client computer. You can refer to the value using the getcookie() function.
    Set the expire time with the bintime() function or the curtime() function plus the number of seconds before you want it to expire
    If cookie expires, the browser will delete the value of the cookie
    If the expiration date is omitted, the cookie is stored in a memory of a browser and will be deleted when the browser closes.
    You can also delete cookie from the browser by setting the past time for expire time
    You can make the cookie available on all sub-domains or sub-directories by specifying DOMAIN and PATH.
    If DOMAIN and PATH is not set, the host where a SQeeL program is running will be set. Cookie will be available in this SQeeL program.
    Cookies are available for all files under the specified path.
    If PATH is not set, the cookies will be available within the directory where a SQeeL program is running
    Note that path may be used differently based on the type of browser and versions.
    If SECURE is set to TRUE, the browser returns cookie only when a secure HTTPS connection exists.
    Syntax
    ret = setcookie(name,value,expires,path,secure)
    Parameters
    name:Cookie name
    value:Cookie value
    expires:Expiration date
    Specify 0 if you want to omit.
    Specify WWW server name issuing cookie.
    If you omit, specify the character string ("""") of the length 0.
    path:Path name
    Specify a path name (URL) issuing cookie.
    If you omit, specify the character string ("""")of the length 0
    secure:Specify a security flag with an integer.
    Return Value
    0:Error
    1:Success
    System Return Value
    ERROR
    0Success
    1Argument error
    Top‚Ö

    © Insight Technology, Inc. 1996-2003 All Rights Reserved.