You can save the code below as
SESSIONcontains all active sessions
TIMEOUTcontains expiration time for a session
COOKIEcontains a cookie name
Now we can use the middleware, so create/modify a controller e.g.
What have we done in the code above?
F.route('/', action, [flags])
sessionmiddleware, which we created
controller.sessionin the controller's action
Now it's very easy to extend functionality of middleware. So I extend the code below:
You can use the code below in each
.js file on the server-side in Total.js.