Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • ActiveRecord
  • Cache
  • Configs
  • Core
  • DateTime
  • Debug
  • DeleteOperation
  • Errors
  • Event
  • EventHook
  • Events
  • FileCache
  • FormattedString
  • Helpers
  • I18n
  • Image
  • Inflections
  • Inflector
  • Models
  • Module
  • Modules
  • Object
  • Operation
  • PingOperation
  • Prototype
  • Route
  • Routes
  • SaveOperation
  • Session
  • TimeZone
  • TimeZoneLocation
  • Uploaded
  • Vars
  • VarsIterator

Interfaces

  • StorageInterface
  • ToArray
  • ToArrayRecursive

Traits

  • PrototypeTrait
  • ToArrayRecursiveTrait

Exceptions

  • AlreadyAuthenticated
  • AuthenticationRequired
  • Exception
  • ModuleConstructorMissing
  • ModuleIsDisabled
  • ModuleNotDefined
  • OffsetError
  • OffsetNotDefined
  • OffsetNotReadable
  • OffsetNotWritable
  • PermissionRequired
  • PropertyError
  • PropertyIsReserved
  • PropertyNotDefined
  • PropertyNotReadable
  • PropertyNotWritable
  • RouteNotDefined
  • SecurityException

Constants

  • TOKEN_ALPHA
  • TOKEN_ALPHA_UPCASE
  • TOKEN_NUMERIC
  • TOKEN_SYMBOL
  • TOKEN_SYMBOL_WIDE

Functions

  • array_flatten
  • array_insert
  • array_merge_recursive
  • camelize
  • capitalize
  • downcase
  • dump
  • escape
  • escape_all
  • exact_array_merge_recursive
  • excerpt
  • format
  • generate_token
  • generate_token_wide
  • generate_v4_uuid
  • get_autoconfig
  • humanize
  • hyphenate
  • log
  • log_error
  • log_info
  • log_success
  • log_time
  • normalize
  • normalize_namespace_part
  • normalize_url_path
  • pbkdf2
  • pluralize
  • remove_accents
  • shorten
  • singularize
  • sort_by_weight
  • stable_sort
  • strip_root
  • titleize
  • unaccent_compare
  • unaccent_compare_ci
  • underscore
  • upcase

Class Session

Session.

Namespace: ICanBoogie
Located at vendor/icanboogie/icanboogie/lib/session.php

Methods summary

public static boolean
# exists( )

Checks if a session identifier can be found to retrieve a session.

Checks if a session identifier can be found to retrieve a session.

Returns

boolean
true if the session identifier exists in the cookie, false otherwise.
public static Session.
# get_session( ICanBoogie\Core $core )

Returns a Session instance.

Returns a Session instance.

The session is initialized when the session object is created.

Once the session is created the start event is fired with the session as sender.

Returns

Session.
public
# __construct( array $options = [] )

Constructor.

Constructor.

In order to circumvent session fixation and session hijacking, the remote IP and the user agent hash are attached to the session. A previous session can only be restored if the remote address and the user agent hash match those attached to that previous session.

Although the user agent is easily forgeable, the IP address (fetched from $_SERVER['REMOTE_ADDR']) is not forgeable without compromising the server itself. The values are stored independently in order to prevent a collision attack.

The session is destroyed when the values don't match and the "location" header is set to request a reload.

Parameters

$options
array
$options
public
# regenerate_id( mixed $delete_old_session = false )

Regenerates the id of the session.

Regenerates the id of the session.

public string
# regenerate_token( )

Regenerates the session token.

Regenerates the session token.

The token_time property is updated to the current time.

Returns

string
The new session token.
public &
# __get( mixed $property )
public
# __set( mixed $property, mixed $value )
public
# __isset( mixed $property )
public
# __unset( mixed $property )

Magic methods summary

Properties summary

Magic properties

public string $remote_ip
#

The remote IP of the request that created the session.

The remote IP of the request that created the session.

public string $remote_agent_hash
#

The remote user agent hash of the request that created the session.

The remote user agent hash of the request that created the session.

public string $token
#

A token that can be used to prevent cross-site request forgeries.

A token that can be used to prevent cross-site request forgeries.

Autodoc API documentation generated by ApiGen 2.8.0