How to access session from edge template

I am building a basic login from scratch and I am about to check user login status but don’t know how to check session in view (edge).

Hi @chheunpheara

Perhaps @loggedin

@loggedIn
  You are logged in!
@else
  <a href="/login">Click here</a> to login.
@endloggedIn

https://adonisjs.com/docs/4.1/views#_loggedin

And to get logged in user:

{{ auth.user }}

https://adonisjs.com/docs/4.1/views#_auth

I don’t want to use this I want to customize my own way.
If I can customize my own session in view, it’d be good to use other sessions for other purposes.

Then perhaps adding runtime values can help, if you want to make it full custom
https://adonisjs.com/docs/4.1/views#_runtime_values

Extenging views in general might be some help
https://adonisjs.com/docs/4.1/views#_extending_views