[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/session/src/Handler/ -> DatabaseHandler.php (summary)

Part of the Joomla Framework Session Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 327 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

DatabaseHandler:: (9 methods):
  __construct()
  close()
  createDatabaseTable()
  destroy()
  gc()
  isSupported()
  open()
  read()
  write()


Class: DatabaseHandler  - X-Ref

Database session storage handler

__construct(DatabaseInterface $db)   X-Ref
Constructor

param: DatabaseInterface  $db  Database connector

close()   X-Ref
Close the session

return: boolean  True on success, false otherwise

createDatabaseTable()   X-Ref
Creates the session database table

return: boolean

destroy($session_id)   X-Ref
Destroy a session

param: integer  $session_id  The session ID being destroyed
return: boolean  True on success, false otherwise

gc($maxlifetime)   X-Ref
Cleanup old sessions

param: integer  $maxlifetime  Sessions that have not updated for the last maxlifetime seconds will be removed
return: boolean  True on success, false otherwise

isSupported()   X-Ref
Test to see if the HandlerInterface is available

return: boolean  True on success, false otherwise

open($save_path, $session_id)   X-Ref
Initialize session

param: string  $save_path   The path where to store/retrieve the session
param: string  $session_id  The session id
return: boolean  True on success, false otherwise

read($session_id)   X-Ref
Read session data

param: string  $session_id  The session id to read data for
return: string  The session data

write($session_id, $session_data)   X-Ref
Write session data

param: string  $session_id    The session id
param: string  $session_data  The encoded session data
return: boolean  True on success, false otherwise



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer