/
var
/
www
/
html
/
sugar13-old
/
src
/
Session
/
Upload File
HOME
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ namespace Sugarcrm\Sugarcrm\Session; Interface SessionStorageInterface extends \ArrayAccess, \Serializable { /** * Get the current SessionStorage object. * @return static */ public static function getInstance(); /** * Start a new session or resume the session with this id. * * @param bool $lock when true, addional session starts with this session id in other threads will be blocked * until this thread ends or unlock is called. When lock is ommited or false, the session will still be written on * close, but will not block other session starts. * * @return mixed */ public function start($lock = false); /** * Destroys this session and removes all data from storage and memory * @return null */ public function destroy(); /** * Set the id of this session. * @param string $id * * @return null */ public function setId($id); /** * returns the ID of this session. * @return string|null */ public function getId(); /** * Commits current session data and unlocks any blocking sesions_starts if applicable * * similar to session_write_close or session_commit but does not destroy the session data currently in memory. * * @return null */ public function unlock(); }