Home All Groups Group Topic Archive Search About
Author
6 Oct 2006 12:32 AM
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?

Author
6 Oct 2006 1:09 AM
Wayne Wengert
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?


Show quoteHide quote
"Wayne Wengert" <wayneSKIPSPAM@wengert.org> wrote in message
news:uNqfy7N6GHA.2364@TK2MSFTNGP02.phx.gbl...
>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?
>
>
Author
6 Oct 2006 3:38 AM
Cor Ligthert [MVP]
Wayne,

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

It sounds like that.

Cor

Show quoteHide quote
"Wayne Wengert" <wayneSKIPSPAM@wengert.org> schreef in bericht
news:uNqfy7N6GHA.2364@TK2MSFTNGP02.phx.gbl...
>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?
>
>
Author
6 Oct 2006 7:09 AM
Wayne Wengert
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

Show quoteHide quote
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:%23Y%23friP6GHA.4120@TK2MSFTNGP06.phx.gbl...
> Wayne,
>
> Are you sure that on that IE there is not something as Cookies disabled.
>
> It sounds like that.
>
> Cor
>
> "Wayne Wengert" <wayneSKIPSPAM@wengert.org> schreef in bericht
> news:uNqfy7N6GHA.2364@TK2MSFTNGP02.phx.gbl...
>>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?
>>
>>
>
>