PTM Logo Version 0.5.1 Beta
Home    SVN    Downloads    Documentation    Forum    Contact
This Site is 100%
Powered by PTM

SourceForge.net Logo
Documentation
I   Index
II   GNU GPL
III   Description
IV   Installation
V   Language Overview
VI   Tags
VII   Variables
VIII   Functions
  • _PTM()
  • _PTM_FILE()
  • append_file_text()
  • basic_header()
  • delete_cookie()
  • end_session()
  • get_dir_list()
  • get_file_text()
  • is_secure()
  • is_session()
  • nohtml()
  • redirect_header()
  • session_add()
  • session_delete()
  • session_domain()
  • session_id()
  • session_name()
  • session_path()
  • session_secure()
  • set_basic_header()
  • set_cookie()
  • set_redirect_header()
  • start_session()
  • update_session()
  • write_file_text()
IX   Modules
Documentation
View / Download this file.
------------------------
delete_cookie() FUNCTION
------------------------

  ------------
  USAGE FORMAT
  ------------

    Within a PREPROCESS tag:

    &delete_cookie($name)
    &delete_cookie($name, $domain)
    &delete_cookie($name, $domain, $path)

  -----------
  DESCRIPTION
  -----------

    Deletes a cookie from the end user's cache, using the standard '-1d' format.
    May ONLY be used in a PREPROCESS tag.

  ---------
  ARGUMENTS
  ---------

    $name

      REQUIRED

      The name of the cookie (case sensitive if replacing a set_cookie()
      statement)

    $domain

      OPTIONAL/REQUIRED

      The domain assigned to the cookie. By default this is the host server,
      such as '.mydomain.com'. Only required if another domain was set in the
      initial cookie.

    $path

      OPTIONAL/REQUIRED

      The path assigned to the cookie. By default this is set to '/'. Only
      required if a different path was set to the initial cookie.

  -------
  RETURNS
  -------

    NONE

  --------------
  USAGE EXAMPLES
  --------------

    ----------------------------
    Example 1: Deleting a Cookie
    ----------------------------

      <?: delete_cookie('color', '.mycomain.com', '/'); ?>

  --------
  SEE ALSO
  --------

    TAGS

      PREPROCESS

    VARIABLES

      %_COOKIES, %_SESSION, %_SET_COOKIES

    FUNCTIONS

      set_cookie()
Home    SVN    Downloads    Documentation    Forum    Contact