Destroying session
colthreepv opened this issue · comments
valerio commented
It does not seem possible with this library, how to achieve it?
valerio commented
Hello, I know how to RTFM, the point was not to read the mainstream documentation when using this library.
For anyone interested, this is a simple copy-pasta to achieve it:
@Controller()
export class ViewController {
// .... other methods
@Get('logout')
@Render('logout')
logoutGet (@Req() req: Request) {
req.session = null
}
}
iamolegga commented
Hi, feel free to open PR for adding this to documentation 👍