2012-07-24 33 views
0

雖然通過API登錄,我回來從維基媒體框架一些餅乾:什麼是'mywikiLoggedOut = 12345678'cookie好?

mywikiUserName =名爲myUsername;
mywiki_session = a27c625a1babc58ad7cc11e317c9eed2;
mywikiLoggedOut = 20120723255540" ;

我不知道mywikiLoggedOut=20120723211540是關於什麼的

我沒有帶有關該發現的文件,所以任何幫助表示讚賞

+0

爲什麼你甚至在意?您應該將cookies發送回服務器,而不關心其中的內容。 – svick 2012-07-24 08:35:08

+0

嗯,我不會把他們全部送回來,只是需要的。而且,知道我在做什麼不是更好嗎?例如__atuvc在歐盟有限制。 – brainray 2012-07-24 08:46:56

回答

2

上做一個簡單的git grep?鏈接到MediaWiki庫將指向你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指示你最後一次註銷的時間,並且用於控制頁面的緩存(大概是爲了使頁面看起來不像註銷後仍然登錄)。