Client
Session.get(key)
import { Session } from 'meteor/session'
Source Get the value of a session variable. If inside a reactive computation, invalidate the computation the next time the value of the variable is changed by Session.set
. This returns a clone of the session value, so if it's an object or an array, mutating the returned value has no effect on the value stored in the session.
Arguments
- key String
-
The name of the session variable to return
Please login to continue.