r=darin, sr=bzbarsky, a=asa
Make session-logout work again for http so turbo works on OS/2
This commit is contained in:
mkaply%us.ibm.com 2003-02-19 14:53:11 +00:00
Родитель 69801b0254
Коммит 9447538c99
1 изменённых файлов: 8 добавлений и 1 удалений

Просмотреть файл

@ -1625,7 +1625,6 @@ nsHttpHandler::Observe(nsISupports *subject,
// XXX should probably shutdown and init the conn mgr. // XXX should probably shutdown and init the conn mgr.
} }
else if (strcmp(topic, "profile-change-net-teardown") == 0 || else if (strcmp(topic, "profile-change-net-teardown") == 0 ||
strcmp(topic, "session-logout") == 0 ||
strcmp(topic, NS_XPCOM_SHUTDOWN_OBSERVER_ID) == 0) { strcmp(topic, NS_XPCOM_SHUTDOWN_OBSERVER_ID) == 0) {
// kill off the "prune dead connections" timer // kill off the "prune dead connections" timer
@ -1642,6 +1641,14 @@ nsHttpHandler::Observe(nsISupports *subject,
// depend on this value. // depend on this value.
mSessionStartTime = NowInSeconds(); mSessionStartTime = NowInSeconds();
} }
else if (strcmp(topic, "session-logout") == 0) {
// clear cache of all authentication credentials.
mAuthCache.ClearAll();
// need to reset the session start time since cache validation may
// depend on this value.
mSessionStartTime = NowInSeconds();
}
else if (strcmp(topic, "profile-change-net-restore") == 0) { else if (strcmp(topic, "profile-change-net-restore") == 0) {
// initialize connection manager // initialize connection manager
InitConnectionMgr(); InitConnectionMgr();