Session TimeOut (urgent)
Hi all,Following code has been used to validate user and role in master page page load event.
if (Session["user"] != null)
{
string userRole = Session["user"].ToString();
if (Roles.IsUserInRole(userRole, "r_loancleark") != true)
{
if (Roles.IsUserInRole(userRole, "r_loanmanager") != true)
{
Response.Redirect("~/Default.aspx");
}
}
}
else
{
Response.Redirect("~/Default.aspx");
}
This code running perfectly in development environment but not in deployment server.
The issue is if after wait for sometime page is redirect to default page.
Any suggestion highly appreciate.
Thanks
Chaminda