Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expired session is not empty. #169

Open
rico345100 opened this issue Apr 26, 2019 · 0 comments
Open

Expired session is not empty. #169

rico345100 opened this issue Apr 26, 2019 · 0 comments

Comments

@rico345100
Copy link

I need to check session is empty. After session expired, using console.log of session returns {}. But when I try Object.keys(session).length, it's not 0 even there's no property in the session.

So I try print session directly and now it shows me like this:

console.log('Session: ', context.session);   // {}
console.log('Keys: ' + Object.keys(context.session));  // _sessCtx,_ctx,isNew

How do I guarantee that session is expired and it's empty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant