JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • Apc
  • Database
  • Memcache
  • Memcached
  • None
  • Wincache
  • Xcache

Class Database

Database session storage handler for PHP

Joomla\Session\Storage
Extended by Joomla\Session\Storage\Database
Namespace: Joomla\Session\Storage
Deprecated: 2.0 The Storage class chain will be removed
Since: 1.0
See: http://www.php.net/manual/en/function.session-set-save-handler.php
Located at vendor/joomla/session/Joomla/Session/Storage/Database.php

Methods summary

public
# __construct( array $options = array() )

Constructor

Constructor

Parameters

$options
array - $options Optional parameters. A dbo options is required.

Throws

RuntimeException

Since

1.0

Overrides

Joomla\Session\Storage::__construct
public string
# read( string $id )

Read the data for a particular session identifier from the SessionHandler backend.

Read the data for a particular session identifier from the SessionHandler backend.

Parameters

$id
string - $id The session identifier.

Returns

string - The session data.

Since

1.0

Overrides

Joomla\Session\Storage::read
public boolean
# write( string $id, string $data )

Write session data to the SessionHandler backend.

Write session data to the SessionHandler backend.

Parameters

$id
string - $id The session identifier.
$data
string - $data The session data.

Returns

boolean - True on success, false otherwise.

Since

1.0

Overrides

Joomla\Session\Storage::write
public boolean
# destroy( string $id )

Destroy the data for a particular session identifier in the SessionHandler backend.

Destroy the data for a particular session identifier in the SessionHandler backend.

Parameters

$id
string - $id The session identifier.

Returns

boolean - True on success, false otherwise.

Since

1.0

Overrides

Joomla\Session\Storage::destroy
public boolean
# gc( integer $lifetime = 1440 )

Garbage collect stale sessions from the SessionHandler backend.

Garbage collect stale sessions from the SessionHandler backend.

Parameters

$lifetime
integer - $lifetime The maximum age of a session.

Returns

boolean - True on success, false otherwise.

Since

1.0

Overrides

Joomla\Session\Storage::gc

Methods inherited from Joomla\Session\Storage

close(), getInstance(), isSupported(), open(), register()

Magic methods summary

Properties summary

protected Joomla\Database\DatabaseDriver $db
#

The DatabaseDriver to use when querying.

The DatabaseDriver to use when querying.

Deprecated

2.0

Since

1.0

Properties inherited from Joomla\Session\Storage

$instances

Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.