PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class THttpCookie

THttpCookie class.

A THttpCookie instance stores a single cookie, including the cookie name, value, domain, path, expire, and secure.

TComponent
Extended by THttpCookie
Package: System\Web
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/THttpRequest.php
Methods summary
public
# __construct( string $name, string $value )

Constructor.

Constructor.

Parameters

$name
string
name of this cookie
$value
string
value of this cookie

Overrides

TComponent::__construct()
public string
# getDomain( )

Returns

string
the domain to associate the cookie with
public
# setDomain( string $value )

Parameters

$value
string
the domain to associate the cookie with
public integer
# getExpire( )

Returns

integer
the time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch.
public
# setExpire( integer $value )

Parameters

$value
integer
the time the cookie expires. This is a Unix timestamp so is in number of seconds since the epoch.
public boolean
# getHttpOnly( )

Returns

boolean
if true the cookie value will be unavailable to JavaScript
public
# setHttpOnly( boolean $value )

Parameters

$value
boolean
$value if true the cookie value will be unavailable to JavaScript
public string
# getName( )

Returns

string
the name of the cookie
public
# setName( string $value )

Parameters

$value
string
the name of the cookie
public string
# getValue( )

Returns

string
the value of the cookie
public
# setValue( string $value )

Parameters

$value
string
the value of the cookie
public string
# getPath( )

Returns

string
the path on the server in which the cookie will be available on, default is '/'
public
# setPath( string $value )

Parameters

$value
string
the path on the server in which the cookie will be available on
public boolean
# getSecure( )

Returns

boolean
whether the cookie should only be transmitted over a secure HTTPS connection
public
# setSecure( boolean $value )

Parameters

$value
boolean
ether the cookie should only be transmitted over a secure HTTPS connection
Methods inherited from TComponent
__call(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO