Class SecureCookie
Hierarchy
- SecureCookie
Indexable
Object that handle the session
To get stateless server the session is encrypted inside a cookie, so you should not store large amount of data in it If you need big session then i would suggest to use a Memcache store with the user.uuid as a key
It is part of the core framework implementation, you should not rely on any method of this object, as the implementation can change if needed An object session is exposed by the framework, so use this one ( for now it is a SecureCookie.getProxy() but can evolve )
The object use Object.observe if available or try Proxy in other case, so old JS VM won't run it
You cannot store variables starting with _ in the session if you do use them they won't be persist, so it can be used to add some context
Properties
Methods
-
Returns void
-
Returns this
-
Parameters
-
name: any
-
cookies: any
Returns string
-
-
Returns boolean
-
Parameters
-
ctx: Context
Returns void
-
-
Parameters
-
ctx: any
-
name: any
-
value: any
-
params: any
Returns void
-
-
Returns any
Generated using TypeDoc
Object that handle the session
To get stateless server the session is encrypted inside a cookie, so you should not store large amount of data in it If you need big session then i would suggest to use a Memcache store with the user.uuid as a key
It is part of the core framework implementation, you should not rely on any method of this object, as the implementation can change if needed An object session is exposed by the framework, so use this one ( for now it is a SecureCookie.getProxy() but can evolve )
The object use Object.observe if available or try Proxy in other case, so old JS VM won't run it
You cannot store variables starting with _ in the session if you do use them they won't be persist, so it can be used to add some context