MediaWiki REL1_33
SessionManagerInterface.php
Go to the documentation of this file.
1<?php
24namespace MediaWiki\Session;
25
27use User;
28use WebRequest;
29
37interface SessionManagerInterface extends LoggerAwareInterface {
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
101 public function getVaryHeaders();
102
107 public function getVaryCookies();
108
109}
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:48
The WebRequest class encapsulates getting at data passed in the URL or via a POSTed form stripping il...
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on $request
Definition hooks.txt:2843
This exists to make IDEs happy, so they don't see the internal-but-required-to-be-public methods on S...
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.
getSessionById( $id, $create=false, WebRequest $request=null)
Fetch a session by ID.
getEmptySession(WebRequest $request=null)
Create a new, empty session.
invalidateSessionsForUser(User $user)
Invalidate sessions for a user.