Hi RITE05,
You should double check the Session object before comparing the Session objects value.
I assume that you use the if state to redirect the user to detail page.
If the Session object lost, your application will redirect to wrong page.
So, please try to add the following code:
if(Session["shopnumber"]!=null)
{
if(Session["shopnumber"]=="Shop1")
{
Response.Redirect("Shop1.aspx");
}
else
{
Response.Redirect("OtherShop.aspx");
}
}
else
{
//redirect to the login page
}
I hope it is helpful to you, if you have any questions, please feel free to let me know.