MediaWiki  master
SessionManagerInterface.php
Go to the documentation of this file.
1 <?php
24 namespace MediaWiki\Session;
25 
27 use User;
28 use WebRequest;
29 
37 interface SessionManagerInterface extends LoggerAwareInterface {
52  public function getSessionForRequest( WebRequest $request );
53 
64  public function getSessionById( $id, $create = false, WebRequest $request = null );
65 
76  public function getEmptySession( WebRequest $request = null );
77 
87  public function invalidateSessionsForUser( User $user );
88 
104  public function getVaryHeaders();
105 
110  public function getVaryCookies();
111 
112 }
getVaryCookies()
Return the list of cookies that need varying on.
invalidateSessionsForUser(User $user)
Invalidate sessions for a user.
getSessionForRequest(WebRequest $request)
Fetch the session for a request (or a new empty session if none is attached to it) ...
getSessionById( $id, $create=false, WebRequest $request=null)
Fetch a session by ID.
The User object encapsulates all of the user-specific settings (user_id, name, rights, email address, options, last login time).
Definition: User.php:51
getVaryHeaders()
Return the HTTP headers that need varying on.
This exists to make IDEs happy, so they don&#39;t see the internal-but-required-to-be-public methods on S...
getEmptySession(WebRequest $request=null)
Create a new, empty session.