Going in Circles

  • Thread starter Thread starter Wayne Wengert
  • Start date Start date
W

Wayne Wengert

I have a VS2005/VB Project that uses a master page on all pages. Certain
pages require that the user be logged in. In the login page, I set a session
variable to "Y" if the user has logged in. In the master page (and others)
when I check to see if the user is logged in, it fails. The code used is:

If Session("LoggedIn") = "Y" Then

lblLoginName.Text = "You are logged in as: " & Session("LoginName")

lblLoginName.Visible = True



Session("LoggedIn") does have a value of "Y" in the login page but not on
the other pages? It is as if it is in a different address space or it is
gettin reset. ny thoughts on what can cause this?
 
Interesting - I just found that it only fails on IE (ver 6 or 7) - it works
fine in Firefox and Opera. ny idea as to what is going on here?
 
Wayne,

Are you sure that on that IE there is not something as Cookies disabled.

It sounds like that.

Cor
 
Cor;

Thanks for that suggestion. I went into the options and made that site an
exception to always allow cookies and that resolved the problem.

Wayne
 
Back
Top