Hawk - PHP documentation
  • Namespace
  • Class
  • Tree

Namespaces

  • Hawk
    • View
      • Plugins

Classes

  • App
  • ButtonInput
  • Cache
  • CheckboxInput
  • ColorInput
  • Conf
  • Controller
  • Crypto
  • DatabaseSessionHandler
  • DatetimeInput
  • DB
  • DBExample
  • DeleteInput
  • Dialogbox
  • EmailInput
  • ErrorHandler
  • Event
  • FileInput
  • FileSystem
  • FloatInput
  • Form
  • FormFieldset
  • FormInput
  • GenericModel
  • GifImage
  • HawkApi
  • HawkUpdater
  • HiddenInput
  • HtmlInput
  • HTTPRequest
  • Icon
  • Image
  • IntegerInput
  • ItemList
  • ItemListField
  • JpegImage
  • Lang
  • Language
  • LeftSidebarTab
  • Less
  • Logger
  • Mail
  • MenuItem
  • Model
  • NoSidebarTab
  • NumberInput
  • ObjectInput
  • Option
  • Panel
  • PasswordInput
  • Permission
  • Plugin
  • PluginInstaller
  • PngImage
  • ProfileQuestion
  • ProfileQuestionValue
  • RadioInput
  • Request
  • Response
  • RightSidebarTab
  • Role
  • RolePermission
  • Route
  • Router
  • SelectInput
  • Session
  • Singleton
  • SubmitInput
  • Tabs
  • TextareaInput
  • TextInput
  • Theme
  • TimeInput
  • Upload
  • User
  • View
  • ViewPlugin
  • Widget
  • WysiwygInput

Traits

  • Utils

Exceptions

  • AppStopException
  • DBExampleException
  • DBException
  • FileSystemException
  • HawkApiException
  • ImageException
  • MailException
  • UploadException
  • ViewException

Class DatabaseSessionHandler

This class implements SessionHandlerInterface to define a session engine base on database

Hawk\DatabaseSessionHandler implements SessionHandlerInterface
Namespace: Hawk
Package: SessionHandlers
Located at DatabaseSessionHandler.php

Methods summary

public
# close( )

Close the session

Close the session

Implementation of

SessionHandlerInterface::close()
public
# destroy( string $sessionId )

Destroy the session

Destroy the session

Parameters

$sessionId
The session id, corresponding to the session cookie

Implementation of

SessionHandlerInterface::destroy()
public
# gc( integer $maxlifetime )

Clean expired sessions

Clean expired sessions

Parameters

$maxlifetime
The session lifetime (not used)

Implementation of

SessionHandlerInterface::gc()
public
# open( string $savePath, string $name )

Open a new session

Open a new session

Parameters

$savePath
Not used
$name
The session name (defaulty 'PHPSESSID')

Implementation of

SessionHandlerInterface::open()
public string
# read( string $sessionId )

Read data of a session

Read data of a session

Parameters

$sessionId
The session id, corresponding to the session cookie

Returns

string
The session data, serialized

Implementation of

SessionHandlerInterface::read()
public
# write( string $sessionId, string $data )

Write data on the session

Write data on the session

Parameters

$sessionId
The session id, corresponding to the session cookie
$data
The data session to write, serialized

Implementation of

SessionHandlerInterface::write()
Hawk - PHP documentation API documentation generated by ApiGen