클래스·함수 명세

Session

Zittme\Framework\Session 클래스의 공개 메서드 목록입니다. 이 문서는 Zittme 코어 소스에서 자동 생성되었습니다.

소스: common/framework/Session.php

공개 메서드

  • static function get(string $key)
  • Get a session variable.
  • static function set(string $key, $value)
  • Set a session variable.
  • static function start(bool $force = false)
  • Start the session.
  • static function checkStart(bool $force = false)
  • Check if the session needs to be started.
  • static function checkLoginStatusCookie()
  • Check the login status cookie.
  • static function create()
  • Create the data structure for a new Zittme session.
  • static function refresh(bool $refresh_cookie = false)
  • Refresh the session.
  • static function close()
  • Close the session and write its data.
  • static function destroy()
  • Destroy the session.
  • static function login(int $member_srl, bool $refresh = true)
  • Log in.
  • static function logout()
  • Log out and destroy the session.
  • static function isStarted()
  • Check if the session has been started.
  • static function isMember()
  • Check if a member has logged in with this session.
  • static function isAdmin()
  • Check if an administrator is logged in with this session.
  • static function isTrusted()
  • Check if the current session is trusted.
  • static function isValid(int $member_srl = 0)
  • Check if the current session is valid for a given member_srl.
  • static function getMemberSrl()
  • Get the member_srl of the currently logged in member.
  • static function getMemberInfo(bool $refresh = false)
  • Get information about the currently logged in member.
  • static function setMemberInfo(Helpers\SessionHelper $member_info)
  • Set the member info.
  • static function getLanguage()
  • Get the current user's preferred language.
  • static function setLanguage(string $language)
  • Set the current user's preferred language.
  • static function getTimezone()
  • Get the current user's preferred time zone.
  • static function setTimezone(string $timezone)
  • Set the current user's preferred time zone.
  • static function getDomain()
  • Get session domain.
  • static function setDomain(string $domain)
  • Set session domain.
  • static function setTrusted(int $duration = 300)
  • Mark the current session as trusted for a given duration.
  • static function getGenericToken()
  • Get a generic token that is not restricted to any particular key.
  • static function createToken(string $key = '')
  • Create a token that can only be verified in the same session.
  • static function verifyToken(string $token, string $key = '', bool $strict = true)
  • Verify a token.
  • static function invalidateToken(string $token)
  • Invalidate a token so that it cannot be verified.
  • static function getLoginStatus()
  • Get a string that identifies login status.
  • static function getLastLoginTime()
  • Get the last login time.
  • static function getValidityInfo(int $member_srl)
  • Get validity information.
  • static function setValidityInfo(int $member_srl, object $validity_info)
  • Set validity information.
  • static function encrypt(string $plaintext)
  • Encrypt data so that it can only be decrypted in the same session.
  • static function decrypt(string $ciphertext)
  • Decrypt data that was encrypted in the same session.
  • static function setAutologinKeys(string $autologin_key, string $security_key)
  • Set autologin key.
  • static function destroyAutologinKeys()
  • Destroy autologin keys.
  • static function destroyOtherSessions(int $member_srl)
  • Destroy all other autologin keys (except the current session).
  • static function destroyCookiesFromConflictingDomains(array $cookies, bool $include_current_host = false)
  • Destroy cookies from potentially conflicting domains.