SilverStripe 2.4 API Docs
  • Package
  • Class
  • Tree
  • Deprecated
Version: master
  • master
  • 3.1
  • 3.0
  • 2.4
  • tagfield

Packages

  • cms
    • assets
    • batchaction
    • batchactions
    • bulkloading
    • comments
    • content
    • core
    • export
    • publishers
    • reports
    • security
    • tasks
  • forms
    • actions
    • core
    • fields-basic
    • fields-dataless
    • fields-datetime
    • fields-files
    • fields-formatted
    • fields-formattedinput
    • fields-relational
    • fields-structural
    • transformations
    • validators
  • installer
  • None
  • PHP
  • sapphire
    • api
    • bulkloading
    • control
    • core
    • cron
    • dev
    • email
    • fields-formattedinput
    • filesystem
    • formatters
    • forms
    • i18n
    • integration
    • misc
    • model
    • parsers
    • search
    • security
    • tasks
    • testing
    • tools
    • validation
    • view
    • widgets

Classes

  • ArrayLib
  • BBCodeParser
  • Convert
  • Cookie
  • DataDifferencer
  • Geoip
  • HTMLCleaner
  • HTTP
  • i18n
  • Profiler
  • ShortcodeParser
  • SSHTMLBBCodeParser
  • SSHTMLBBCodeParser_Filter
  • SSHTMLBBCodeParser_Filter_Basic
  • SSHTMLBBCodeParser_Filter_EmailLinks
  • SSHTMLBBCodeParser_Filter_Extended
  • SSHTMLBBCodeParser_Filter_Images
  • SSHTMLBBCodeParser_Filter_Links
  • SSHTMLBBCodeParser_Filter_Lists
  • TextParser
  • Translatable_Transformation
  • XML

Class Cookie

A set of static methods for manipulating cookies.

Package: sapphire\misc
Located at sapphire/core/Cookie.php

Methods summary

public static
# set( string $name, string $value, integer $expiryDays = 90, string $path = null, string $domain = null, boolean $secure = false, boolean $httpOnly = false )

Set a cookie variable

Set a cookie variable

Parameters

$name
string
$name The variable name
$value
string
$value The variable value. May be an array or object if you wish.
$expiryDays
integer
$expiryDays The expiry time, in days. Defaults to 90.
$path
string
$path See http://php.net/set_session
$domain
string
$domain See http://php.net/set_session
$secure
boolean
$secure See http://php.net/set_session
$httpOnly
boolean
$httpOnly See http://php.net/set_session (PHP 5.2+ only)
public static
# get( mixed $name )

Get a cookie variable

Get a cookie variable

public static
# forceExpiry( mixed $name )
public static
# set_report_errors( mixed $reportErrors )
public static
# report_errors( )

Magic methods summary

Properties summary

public static boolean $report_errors
#

Comments

Comment policy: Please use comments for tips and corrections about the described functionality. Comments are moderated, we reserve the right to remove comments that are inappropriate or are no longer relevant.
Use the Silverstripe Forum to ask questions.
blog comments powered by Disqus
SilverStripe 2.4 API Docs API documentation generated by ApiGen 2.8.0