HI,
You can check the session existance in the pageload and then perform your operations:
if (!string.IsNullOrEmpty(Convert.ToString(Session["UserName"])))
{
}
else
{
}
Here IsNullOrEmpty checks for the null as well as "" values simultaneously.
There is another way:
Increase the session timeout value.
1.
Session.Timeout = 540;
OR
2.
<system.web>
.......
<sessionstate timeout="1440"></sessionstate>
</system.web>
Thanks