expressjs/session

use proxies for session data

Open

Aperta il 29 mag 2014

Vedi su GitHub
 (17 commenti) (0 reazioni) (0 assegnatari)JavaScript (6073 star) (977 fork)batch import
enhancementhelp wanted

Descrizione

So that we can check that the store actually exists (#4) and whatever else we want.

req.session.set('thing.property', stuff)

req,session.get('thing.property')

Would be removed of favour of Proxies, eventually. In like a decade when they actually land.

A big issue would be people being idiots and assigning stuff onto the data object or get()-ed objects.

Guida contributor