MediaWiki master
SessionManagerInterface.php
Go to the documentation of this file.
1<?php
7namespace MediaWiki\Session;
8
11use Psr\Log\LoggerAwareInterface;
12
22interface SessionManagerInterface extends LoggerAwareInterface {
37 public function getSessionForRequest( WebRequest $request );
38
49 public function getSessionById( $id, $create = false, ?WebRequest $request = null );
50
61 public function getEmptySession( ?WebRequest $request = null );
62
70 public function invalidateSessionsForUser( User $user );
71
84 public function getVaryHeaders();
85
90 public function getVaryCookies();
91
92}
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form,...
User class for the MediaWiki software.
Definition User.php:130
MediaWiki\Session entry point interface.
getSessionForRequest(WebRequest $request)
Fetch the session for a request (or a new empty session if none is attached to it)
getVaryCookies()
Return the list of cookies that need varying on.
getVaryHeaders()
Return the HTTP headers that need varying on.
getEmptySession(?WebRequest $request=null)
Create a new, empty session.
invalidateSessionsForUser(User $user)
Invalidate sessions for a user.
getSessionById( $id, $create=false, ?WebRequest $request=null)
Fetch a session by ID.