AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Namespaces

  • Alo
    • Cache
    • Controller
    • Db
    • Exception
    • Session
    • Statics
    • Test
    • Validators
  • Controller
  • None
  • PHP

Classes

  • Cookie
  • Format
  • Security

Class Cookie

Cookie handler

Namespace: Alo\Statics
Package: Statics
Author: Art <a.molcanovas@gmail.com>
Located at sys/class/alo/statics/cookie.php

Methods summary

public static boolean
# set( string $name, string $value, integer|boolean $expire = 0, string $path = '/', string $domain = '', boolean $secure = false, boolean $httponly = true )

Wrapper for PHP's setcookie with

Wrapper for PHP's setcookie with

Parameters

$name
string
$name Cookie name
$value
string
$value Cookie value
$expire
integer|boolean
$expire False if deleting a cookie, 0 for session-length cookie, expiration time in seconds otherwise
$path
string
$path The path the cookie will be available at
$domain
string
$domain The domain the cookie will be available at
$secure
boolean
$secure Whether to only transfer the cookie via HTTPS.
$httponly
boolean
$httponly Whether to only allow server-side usage of the cookie

Returns

boolean
Whether the cookie was set. Always returns false on CLI requests.

Author

Art <a.molcanovas@gmail.com>
public static boolean
# delete( string $name )

Deletes a cookie

Deletes a cookie

Parameters

$name
string
$name Cookie name

Returns

boolean
Whether the cookie was deleted. Always returns false on CLI requests.

Author

Art <a.molcanovas@gmail.com>

Magic methods summary

AloFramework documentation API documentation generated by ApiGen 2.8.0