|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Going in CirclesI 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? 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? > > 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? > > 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? >> >> > >
Help with encrypted web pages?
Using a WndProc override Access asp:SqlDataSource or asp:GridView directly declaring a dataset as public PrintPreviewDialog Control and HTML get HTML code of table created dynamically Can a custom object know it's owner Can I create controls with static ID's? search user in active directory Tell XP to only run POS app |
|||||||||||||||||||||||