fix Cookie.hasExpired() for session cookies
This commit is contained in:
parent
0c767b3fee
commit
afa7151e6a
|
@ -112,7 +112,7 @@ export default class Cookie {
|
|||
return this.name + "=" + this.value;
|
||||
}
|
||||
hasExpired(sessionEnded) {
|
||||
return sessionEnded && this.expiry === null || this.expiry < new Date();
|
||||
return sessionEnded && this.expiry === null || this.expiry && this.expiry < new Date();
|
||||
}
|
||||
isValidForRequest(requestURL) {
|
||||
if(this.hasExpired(false))
|
||||
|
|
Loading…
Reference in New Issue
Block a user