At the moment, since expiry field of the filter is optional if it is set to null or undefined in getCookies or deleteCookies, it will be omitted when matching the cookies. Which means that there is no way to specifically filter the cookies which have expiry field not set. Not sure if it's something what clients would want.
If, yes, one option would be to specify the behavior for null value for expiry field to filter for session cookies. Another option could be to have a special filter field, e.g.isSession.
At the moment, since
expiry
field of thefilter
is optional if it is set tonull
orundefined
ingetCookies
ordeleteCookies
, it will be omitted when matching the cookies. Which means that there is no way to specifically filter the cookies which haveexpiry
field not set. Not sure if it's something what clients would want. If, yes, one option would be to specify the behavior fornull
value forexpiry
field to filter for session cookies. Another option could be to have a special filter field, e.g.isSession
.