alfhen / vue-cookie

A Vue.js plugin for manipulating cookies
MIT License
822 stars 74 forks source link

session support? ssl cookies? #12

Closed NextStepGuru closed 7 years ago

NextStepGuru commented 7 years ago

Would it be possible to add session cookies and ssl cookie support?

alfhen commented 7 years ago

@NextStepGuru Since the purpose of this plugin is not to contain any code for actually setting cookies but just providing a wrapper for the awesome Tiny cookie library, I do not believe it would make sense to implement these features in this plugin. But I believe that the latest version of tiny cookie contains a secure option, meaning you should be able to do:


Vue.cookie.set('someKey', 'someValue', { secure: true });

Regarding the session cookies if it is something you need you should make a issue on: https://github.com/Alex1990/tiny-cookie/issues