-
I need to use the store.destroy(sid, callback) method described in the express-session implementation to delete a session based on the SID, but I can't figure out which object to call the method on. Any help would be appreciated. Also, @kleydon I hope the interview went well. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @otobot1, Here's the way I'm deleting a user session (as well as all other sessions the user has, i.e. for logging out):
I suppose the unintuitive part is that in the express session store documentation / spec, the session id is passed as a parameter, whereas when you actually use a session store implementation (or maybe just this one?), Does this get past the puzzlement?
Thanks! Fingers crossed... |
Beta Was this translation helpful? Give feedback.
Hi @otobot1,
Here's the way I'm deleting a user session (as well as all other sessions the user has, i.e. for logging out):