|
Class THttpCookie
THttpCookie class.
A THttpCookie instance stores a single cookie, including the cookie name,
value, domain, path, expire, and secure.
-
TComponent
-
THttpCookie
Methods summary
public
|
#
__construct( string $name, string $value )
Constructor.
Parameters
- $name
string name of this cookie
- $value
string value of this cookie
Overrides
|
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()
|
|