Skip to content

A simple package for basic cookie management in Meteor projects.

Notifications You must be signed in to change notification settings

subhog/meteor-cookies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cookies for Meteor.js

A simple package for basic cookie management in Meteor projects.

API

Cookie.get(name)

Gets value of a named cookie. Reactive data source.

Cookie.set(name, value, duration)

Sets value of a named cookie.

name string - name of the cookie

value string - value

duration {} (optional) - possible fields:

  • seconds
  • minutes
  • hours
  • days
  • months
  • years
  • clear

If clear parameter is set, cookie is immediately removed.

Cookie.clear(name)

Remove named cookie.

Cookie.clearAll()

Remove all cookies. Useful during development.

Cookie.list()

List all registered cookie names. Reactive data source.

About

A simple package for basic cookie management in Meteor projects.

Resources

Stars

Watchers

Forks

Packages

No packages published