通过API登录时,我从维基媒体框架中获取了一些cookie:
mywikiUserName =名为myUsername;
mywiki_session = a27c625a1babc58ad7cc11e317c9eed2;
mywikiLoggedOut = 20120723255540" ;
我想知道mywikiLoggedOut=20120723211540
是关于什么的?
我没有找到关于此的文档,所以感谢任何帮助。
答案 0 :(得分:2)
在MediaWiki存储库上执行简单的git grep
会指向the doLogout()
function in includes/User.php
:
/**
* Clear the user's cookies and session, and reset the instance cache.
* @see logout()
*/
public function doLogout() {
$this->clearInstanceCache( 'defaults' );
$this->getRequest()->setSessionData( 'wsUserID', 0 );
$this->clearCookie( 'UserID' );
$this->clearCookie( 'Token' );
# Remember when user logged out, to prevent seeing cached pages
$this->setCookie( 'LoggedOut', wfTimestampNow(), time() + 86400 );
}
该函数和注释的代码清楚地表明此cookie指示您上次注销的时间并用于控制页面的缓存(可能是因为页面看起来不像您在登录后仍然登录出)。