1

My web application is using AngularJS, NodeJS, Express, and Passport. When I do a CTRL+Shift+I and look at the Cookies under the Resources tab on Google Chrome, I see 'connect.sid' that I would like get the expiration date from. Is it possible? I have tried using document.cookie on the client-side but nothing shows up.

This is the code I used to set up the expiration date for 'connect.sid'

 app.use(express.session({cookie : { maxAge: 3600000 * 24 * 30 * 2 }));

1 Answer 1

1

No you can not get the expiration date of the cookie from client side. document.cookie will only give you key=value pairs.

1

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.