ScottHamper / Cookies

JavaScript Client-Side Cookie Manipulation Library
The Unlicense
1.77k stars 169 forks source link

Session cookies #68

Closed germtb closed 7 years ago

germtb commented 7 years ago

Reading the docs I have not found a way to set session cookies. Is this possible or not supported yet? Thanks.

ScottHamper commented 7 years ago

Hey Gerard,

Session cookies are cookies without an explicit expiration date set. So you can absolutely create a session cookie with Cookies.js - just don't set the expires option when using Cookies.set.