In hapi, there was a state obj for request request.state.
What's the equivalent part in express? req.session?
Thanks
In hapi, there was a state obj for request request.state.
What's the equivalent part in express? req.session?
Thanks
Copyright © 2021 Jogjafile Inc.
Not familiar with Hapi but from docs I understand
statecorresponds to http cookies. If my understanding is correct, then in expressjs you can use cookie-parser middleware to get the cookies sent by client usingreq.cookiesIf you want to set state or in other words cookie then just set it on the response i.e.
reslike this. Reference