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

Removing Session Cookies #40

Open
quangv opened this issue Feb 19, 2012 · 1 comment
Open

Removing Session Cookies #40

quangv opened this issue Feb 19, 2012 · 1 comment

Comments

@quangv
Copy link

quangv commented Feb 19, 2012

Is there a way to delete session cookies?

I've tried .deleteAllVisibleCookies() but it doesn't seem to delete session cookies (Express).

In fact I'm not sure if I can even retrieve the session cookie.

.getCookie() doesn't show connect.sid
.deleteCookie('connect.sid', 'domain=localhost, path=/) doesn't work


Oh it's an httpOnly cookie... anyway to remove it still?

@quangv
Copy link
Author

quangv commented Feb 19, 2012

So the way I did it was

server.get '/delete', (req, res)->
 req.sessionStore.clear()
 res.send(200)

soda.open 'http://localhost:3000/delete'

Anyone know a better way? Please share, thank you!

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