mirror of https://github.com/apache/cloudstack.git
ui: call logout before login to clear old sessionkey cookies (#4326)
This handle edge cases of upgrades and when legacy UI is used along with Primate or any UI sharing cookies. The specific case it fixes involves removal of duplicate sessionkey cookies. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
44bc134162
commit
6ee6633e6d
|
|
@ -280,6 +280,15 @@
|
|||
|
||||
var loginCmdText = array1.join("");
|
||||
|
||||
// Logout before login is called to purge any duplicate sessionkey cookies
|
||||
// to handle edge cases around upgrades and using legacy UI with Primate
|
||||
$.ajax({
|
||||
url: createURL('logout'),
|
||||
async: false,
|
||||
success: function() {},
|
||||
error: function() {}
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
data: "command=login" + loginCmdText + "&response=json",
|
||||
|
|
|
|||
Loading…
Reference in New Issue