Well there maybe an issue with it being a string. So change the line to be
CInt(objReader.GetValue(0)) < 1
And also you would not have an Else part to the if statement in the default.aspx page. Not that it is the issue.
And what does your session_start and session_end look like in the global.asax file?
If the problem isn't there, I am at loss. You could send me a PM with the code sections in it and I could review them. Something is reseting that Session variable for some reason. I am guessing in the Session_Start or End? I can't seem to see where the problem is according to your code. And you have copied my code in line by line to very it works....?
Oh and just to clarify:
So there for as far as my understanding its not passing that parameter Session("Logged_IN") = "Yes" from the login page to the Global.asax Session start.
No value is passed to or from the Global.asax Session_Start. That subroutine only creates the variable and populates it on start of a session. But I understand what you are referring to.
Nice work on the the breakpoints and finding out what value in the Session variable is at different points. Well done.
But saying that.....I am still at a loss here. I will take a clearer look at it when I get home!