I have an Asp.net Mvc application with razor views engine , in which i used a variable Session['user']
: when an user log on the application Session['user'] = login
and in the logout this variable takes as value Null
.
The problem is that there is a short timeout and the session variable expires : if i do nothing in one minute after log on the application Session['user'] =null
automatically.
So how can i set the timeout of the session's variable unlimited until it is changed by program?Any suggestions?