[关闭]
@WrRan 2016-11-09T18:10:16.000000Z 字数 545 阅读 1122

sails

Session Hook

At configuration-time, this hook loads verifies valid configuration of the connect session store (configurable in sails.config.session),
At lift-time, it instantiates the session store and makes it accesible via sails.session.

It includes methods for:
+ attaching a connect session to a socket.io connection
+ generating new sessions
+ generating a session secret (for apps which do not specify one)
+ getting and setting the session

Contributing to this hook

It would be great to see a generic connect session adapter with support for the existing 'connections' in sails (ie. waterline adapters). See connect-waterline.

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注