Client
Session.set(key, value)
import { Session } from 'meteor/session' Source Set a variable in the session. Notify any listeners that the value has changed (eg: redraw templates, and rerun any Tracker.autorun computations, that called Session.get on this key.)
Arguments
- key String
-
The key to set, eg,
selectedItem - value EJSON-able Object or undefined
-
The new value for
key
Please login to continue.