So, here is the thing... When i login using login.aspx, it redirects me to admin.aspx. If leave admin page idle for few minutes and then try to open a web form it gives me an error.
"Object reference not set to an instance of an object."
**Source Error:**
Line 15: protected void Page_Load(object sender, EventArgs e)
Line 16: {
Line 17: string s=Session["po"].ToString();
Line 18:
Line 19: Session["y"]=".";

Now when i login again pages work fine. And again after few minutes i got this error whenever i try to open a page from admin page or try to refresh a page. On the other hand i have few pages and they do not have above session code, they work fine. But only problem is they can be opened without logging in and the ones with this command do not open directly. Whenever i try to open them without logging in i get this error too.
Can you explain me how to fix this issue? Is there any way to increase session timeout? Is this some kind of session logout?