Verzeichnisstruktur phpBB-3.2.0
- Veröffentlicht
- 06.01.2017
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
SessionHandlerInterface.php
001 <?php
002
003 /*
004 * This file is part of the Symfony package.
005 *
006 * (c) Fabien Potencier <fabien@symfony.com>
007 *
008 * For the full copyright and license information, please view the LICENSE
009 * file that was distributed with this source code.
010 */
011
012 /**
013 * SessionHandlerInterface for PHP < 5.4.
014 *
015 * The order in which these methods are invoked by PHP are:
016 * 1. open [session_start]
017 * 2. read
018 * 3. gc [optional depending on probability settings: gc_probability / gc_divisor]
019 * 4. destroy [optional when session_regenerate_id(true) is used]
020 * 5. write [session_write_close] or destroy [session_destroy]
021 * 6. close
022 *
023 * Extensive documentation can be found at php.net, see links:
024 *
025 * @see http://php.net/sessionhandlerinterface
026 * @see http://php.net/session.customhandler
027 * @see http://php.net/session-set-save-handler
028 *
029 * @author Drak <drak@zikula.org>
030 * @author Tobias Schultze <http://tobion.de>
031 */
032 interface SessionHandlerInterface
033 {
034 /**
035 * Re-initializes existing session, or creates a new one.
036 *
037 * @see http://php.net/sessionhandlerinterface.open
038 *
039 * @param string $savePath Save path
040 * @param string $sessionName Session name, see http://php.net/function.session-name.php
041 *
042 * @return bool true on success, false on failure
043 */
044 public function open($savePath, $sessionName);
045
046 /**
047 * Closes the current session.
048 *
049 * @see http://php.net/sessionhandlerinterface.close
050 *
051 * @return bool true on success, false on failure
052 */
053 public function close();
054
055 /**
056 * Reads the session data.
057 *
058 * @see http://php.net/sessionhandlerinterface.read
059 *
060 * @param string $sessionId Session ID, see http://php.net/function.session-id
061 *
062 * @return string Same session data as passed in write() or empty string when non-existent or on failure
063 */
064 public function read($sessionId);
065
066 /**
067 * Writes the session data to the storage.
068 *
069 * Care, the session ID passed to write() can be different from the one previously
070 * received in read() when the session ID changed due to session_regenerate_id().
071 *
072 * @see http://php.net/sessionhandlerinterface.write
073 *
074 * @param string $sessionId Session ID , see http://php.net/function.session-id
075 * @param string $data Serialized session data to save
076 *
077 * @return bool true on success, false on failure
078 */
079 public function write($sessionId, $data);
080
081 /**
082 * Destroys a session.
083 *
084 * @see http://php.net/sessionhandlerinterface.destroy
085 *
086 * @param string $sessionId Session ID, see http://php.net/function.session-id
087 *
088 * @return bool true on success, false on failure
089 */
090 public function destroy($sessionId);
091
092 /**
093 * Cleans up expired sessions (garbage collection).
094 *
095 * @see http://php.net/sessionhandlerinterface.gc
096 *
097 * @param string|int $maxlifetime Sessions that have not updated for the last maxlifetime seconds will be removed
098 *
099 * @return bool true on success, false on failure
100 */
101 public function gc($maxlifetime);
102 }
103