I use to session but got the below error
Error use to session login
You are trying to access variable which is null, looks like this variable for checking username on first page load