Check Session on Button Submit


Hello there.
I wanna ask about session in adonis.
Is there any simple way to check session on button submit in controller ?
coz at this time, if i clear the session and i try click submit button it will return me an error code " EBADCSRFTOKEN: Invalid CSRF token "


You must include a CSRF field in your form.

To do this, just add this code inside your form:

{{ csrfField() }}