473,327 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Going in Circles

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?
Oct 6 '06 #1
3 1046
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 Wengert" <wa***********@wengert.orgwrote in message
news:uN**************@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?


Oct 6 '06 #2
Wayne,

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

It sounds like that.

Cor

"Wayne Wengert" <wa***********@wengert.orgschreef in bericht
news:uN**************@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?


Oct 6 '06 #3
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

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2******************@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" <wa***********@wengert.orgschreef in bericht
news:uN**************@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?



Oct 6 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

132
by: Kevin | last post by:
I don't know if I should even start this topic but here goes. I'm an ex vb6 developer, now developing in C#. The reason why I started developing in C# is because the company that I worked for at...
0
by: Ranjit | last post by:
Hi, I would like to know how to place circles in the connecting points of the lines, and very close to the circles I would like to place the values like a,b,c...etc automatically for each...
0
by: Gilgamesh | last post by:
Hi, I have some very limited knowledge of web development but I have an imagemap in which I want to be able to display a small yellow circle at certain pre-define locations. When the user moves...
3
by: Douglas Douglas | last post by:
Hi everybody. I have a paper form that I scan into an image. My user fills some circles in this paper form using black ink. Every form has ten rows with five circles each and the user fills only...
4
by: jason.m.ho | last post by:
Hello, I am writing a no-plugin networked Sketchpad program (DHTML, Comet/Ajax). Because I am trying to avoid using Flash or Java Applet, I rendered my strokes at first with the wz_jsgraphics...
6
by: funke | last post by:
An archery target consists of a central circle of yellow surrounded by concentric rings of red, blue,balck,white.Each ring has the same width which is the same aas the radius of the yellow...
3
bvdet
by: bvdet | last post by:
I wrote a script that extracts line and circle data from an Autocad DXF file:## GridDXF.py Version 1.02 ## Copyright (c) 2006 Bruce Vaughan, BV Detailing & Design, Inc. ## All rights reserved....
1
by: meyboat | last post by:
hello there, i just started writing some simple programs in c plus plus and now on another one , which is suppose to draw concentric circles. having some difficulties and wondering if u could help me...
1
by: tiffrobe | last post by:
I'm a little lost on my program. Everything works fine except function 3. It gives out garbage numbers. Its suppose to give the distance between two points and then the area of 2 circles. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.