473,466 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Session - Screen Switches for no apparent reason.

I'm not sure what to think of this. In the appliacation, upon postback,
users screens will get mixed up. Meaning... Perhaps on my screen im working
with a particular set of data. I click a button to cause a post back, then
all of the sudden someone elses data comes up. If I hit the refresh button,
my data comes back again.

Here are the details.

..aspnet app using VB.net
Developed using Visual studio 2002, converted to 2003. problem existed
before and after the conversion.
Intranet App only. No outside users.
IIS6 and IIS 5 (tried both)

A user(none in particular) logs in to my application using forms
authentication. Their ID number is stored in session. Different reports and
data are rendered based upon this Id number. At the top of every screen is
who they are based upon the Id they entered. As the user moves through the
application, clicking on various things, their screen gets mixed up with
another users within my Domain. So perhaps at the top I'm logged in as Tom
Callahan, I click a button and next thing I know I'm logged in as John
smith. If I call john smith, He doesn't see my screen necessarily. I hit
the refresh button and my screen comes back correctly. The 2 people are one
the same domain, but geographically speaking they are not necessarliy in the
same building.

This happens rarely, but it seems to be reported more often. One time, we
were holding a class with about 10 people, and about 5 of the 10 people got
someone elses screen who was in the class. and one person got someone who
was not in the class.

It seems like something on the server happens (a hiccup) or an error, then
people get switched. I thought perhaps that it had to do with someone
generating an error within the system, but I have proven that to be not
true. It's also not isolated to servers as I have moved it from a 2k3
server to a 2000 server (different box), but the problem still occured. I
have since moved it back.
Any help in this matter would be appriciated. This has stumped me for quite
a while.
Tom Callahan
Nov 19 '05 #1
4 1215
How are you storing Session? In Proc, Out of Proc, State Server, SQL Server?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

<tc*******@coh.org> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I'm not sure what to think of this. In the appliacation, upon postback,
users screens will get mixed up. Meaning... Perhaps on my screen im
working with a particular set of data. I click a button to cause a post
back, then all of the sudden someone elses data comes up. If I hit the
refresh button, my data comes back again.

Here are the details.

.aspnet app using VB.net
Developed using Visual studio 2002, converted to 2003. problem existed
before and after the conversion.
Intranet App only. No outside users.
IIS6 and IIS 5 (tried both)

A user(none in particular) logs in to my application using forms
authentication. Their ID number is stored in session. Different reports
and data are rendered based upon this Id number. At the top of every
screen is who they are based upon the Id they entered. As the user moves
through the application, clicking on various things, their screen gets
mixed up with another users within my Domain. So perhaps at the top I'm
logged in as Tom Callahan, I click a button and next thing I know I'm
logged in as John smith. If I call john smith, He doesn't see my screen
necessarily. I hit the refresh button and my screen comes back correctly.
The 2 people are one the same domain, but geographically speaking they are
not necessarliy in the same building.

This happens rarely, but it seems to be reported more often. One time, we
were holding a class with about 10 people, and about 5 of the 10 people
got someone elses screen who was in the class. and one person got someone
who was not in the class.

It seems like something on the server happens (a hiccup) or an error, then
people get switched. I thought perhaps that it had to do with someone
generating an error within the system, but I have proven that to be not
true. It's also not isolated to servers as I have moved it from a 2k3
server to a 2000 server (different box), but the problem still occured. I
have since moved it back.
Any help in this matter would be appriciated. This has stumped me for
quite a while.
Tom Callahan

Nov 19 '05 #2
Good Question.
InProc
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424"
sqlConnectionString="data source=127.0.0.1;user id=sa;password="
cookieless="false" timeout="100"/>
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
How are you storing Session? In Proc, Out of Proc, State Server, SQL
Server?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

<tc*******@coh.org> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I'm not sure what to think of this. In the appliacation, upon postback,
users screens will get mixed up. Meaning... Perhaps on my screen im
working with a particular set of data. I click a button to cause a post
back, then all of the sudden someone elses data comes up. If I hit the
refresh button, my data comes back again.

Here are the details.

.aspnet app using VB.net
Developed using Visual studio 2002, converted to 2003. problem existed
before and after the conversion.
Intranet App only. No outside users.
IIS6 and IIS 5 (tried both)

A user(none in particular) logs in to my application using forms
authentication. Their ID number is stored in session. Different reports
and data are rendered based upon this Id number. At the top of every
screen is who they are based upon the Id they entered. As the user moves
through the application, clicking on various things, their screen gets
mixed up with another users within my Domain. So perhaps at the top I'm
logged in as Tom Callahan, I click a button and next thing I know I'm
logged in as John smith. If I call john smith, He doesn't see my screen
necessarily. I hit the refresh button and my screen comes back
correctly. The 2 people are one the same domain, but geographically
speaking they are not necessarliy in the same building.

This happens rarely, but it seems to be reported more often. One time,
we were holding a class with about 10 people, and about 5 of the 10
people got someone elses screen who was in the class. and one person got
someone who was not in the class.

It seems like something on the server happens (a hiccup) or an error,
then people get switched. I thought perhaps that it had to do with
someone generating an error within the system, but I have proven that to
be not true. It's also not isolated to servers as I have moved it from a
2k3 server to a 2000 server (different box), but the problem still
occured. I have since moved it back.
Any help in this matter would be appriciated. This has stumped me for
quite a while.
Tom Callahan


Nov 19 '05 #3
your are probably storing session values in a vb module as public
properties. as these are shared between all threads, two concurent page will
have problems, as changing in one changes for all.
-- bruce (sqlwork.com)
<tc*******@coh.org> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
| I'm not sure what to think of this. In the appliacation, upon postback,
| users screens will get mixed up. Meaning... Perhaps on my screen im
working
| with a particular set of data. I click a button to cause a post back,
then
| all of the sudden someone elses data comes up. If I hit the refresh
button,
| my data comes back again.
|
| Here are the details.
|
| .aspnet app using VB.net
| Developed using Visual studio 2002, converted to 2003. problem existed
| before and after the conversion.
| Intranet App only. No outside users.
| IIS6 and IIS 5 (tried both)
|
| A user(none in particular) logs in to my application using forms
| authentication. Their ID number is stored in session. Different reports
and
| data are rendered based upon this Id number. At the top of every screen is
| who they are based upon the Id they entered. As the user moves through
the
| application, clicking on various things, their screen gets mixed up with
| another users within my Domain. So perhaps at the top I'm logged in as
Tom
| Callahan, I click a button and next thing I know I'm logged in as John
| smith. If I call john smith, He doesn't see my screen necessarily. I
hit
| the refresh button and my screen comes back correctly. The 2 people are
one
| the same domain, but geographically speaking they are not necessarliy in
the
| same building.
|
| This happens rarely, but it seems to be reported more often. One time, we
| were holding a class with about 10 people, and about 5 of the 10 people
got
| someone elses screen who was in the class. and one person got someone who
| was not in the class.
|
| It seems like something on the server happens (a hiccup) or an error, then
| people get switched. I thought perhaps that it had to do with someone
| generating an error within the system, but I have proven that to be not
| true. It's also not isolated to servers as I have moved it from a 2k3
| server to a 2000 server (different box), but the problem still occured. I
| have since moved it back.
|
|
| Any help in this matter would be appriciated. This has stumped me for
quite
| a while.
|
|
| Tom Callahan
|
|
Nov 19 '05 #4
Bruce, You could be on to something. Her is how I am doing it.i have a
classfile called sessioninfo with this info in it
Shared Sub New()
SessionInfo.whoami_ID = String.Empty
SessionInfo.whoami_Name = String.Empty
SessionInfo.LastPage = String.Empty
SessionInfo.LastException = Nothing
End Sub
Public Shared Property whoami_ID() As String
Get
Return HttpContext.Current.Session("whoami_ID").ToString( )
End Get
Set(ByVal Value As String)
HttpContext.Current.Session("whoami_ID") = Value
End Set
End Property

then i can get or set the Session ID like so

sessioninfo.whoami_ID = whoami_id

However I do not always Get the Id the same way. I sometimes use this
method.

Id = Session("whoami_id")

Others have used the above method without any problems. Also if it is
really a problem, why is it that when the user refreshes his or her
browser, the right data comes in. its almost as if the server got confused
for a moment.


"bruce barker" <no***********@safeco.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
your are probably storing session values in a vb module as public
properties. as these are shared between all threads, two concurent page
will
have problems, as changing in one changes for all.
-- bruce (sqlwork.com)
<tc*******@coh.org> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
| I'm not sure what to think of this. In the appliacation, upon postback,
| users screens will get mixed up. Meaning... Perhaps on my screen im
working
| with a particular set of data. I click a button to cause a post back,
then
| all of the sudden someone elses data comes up. If I hit the refresh
button,
| my data comes back again.
|
| Here are the details.
|
| .aspnet app using VB.net
| Developed using Visual studio 2002, converted to 2003. problem existed
| before and after the conversion.
| Intranet App only. No outside users.
| IIS6 and IIS 5 (tried both)
|
| A user(none in particular) logs in to my application using forms
| authentication. Their ID number is stored in session. Different reports
and
| data are rendered based upon this Id number. At the top of every screen
is
| who they are based upon the Id they entered. As the user moves through
the
| application, clicking on various things, their screen gets mixed up with
| another users within my Domain. So perhaps at the top I'm logged in as
Tom
| Callahan, I click a button and next thing I know I'm logged in as John
| smith. If I call john smith, He doesn't see my screen necessarily. I
hit
| the refresh button and my screen comes back correctly. The 2 people are
one
| the same domain, but geographically speaking they are not necessarliy in
the
| same building.
|
| This happens rarely, but it seems to be reported more often. One time,
we
| were holding a class with about 10 people, and about 5 of the 10 people
got
| someone elses screen who was in the class. and one person got someone
who
| was not in the class.
|
| It seems like something on the server happens (a hiccup) or an error,
then
| people get switched. I thought perhaps that it had to do with someone
| generating an error within the system, but I have proven that to be not
| true. It's also not isolated to servers as I have moved it from a 2k3
| server to a 2000 server (different box), but the problem still occured.
I
| have since moved it back.
|
|
| Any help in this matter would be appriciated. This has stumped me for
quite
| a while.
|
|
| Tom Callahan
|
|

Nov 19 '05 #5

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

Similar topics

30
by: Robert Tweed | last post by:
Does anyone know a good resource discussing the issues involved in session theft? I've read a couple, but none that really address the problem apart from acknowledging that it is a problem; you...
7
by: Billy Jacobs | last post by:
I am having a problem with my session variable being set to Null for no apparent reason. I am declaring it like the following when the user logs in. dim objUserInfo as new clsUserInfo 'Set...
1
by: Werner | last post by:
Hi Patrick! Can you give an example of how to use a frameset inside an aspx-file? When I create a new frameset in Visual Studio.Net it just gives me a htm-File. Or give me a link where I can...
3
by: Shari | last post by:
We are having a very strange problem. We have users processing personal information, and sometimes, they will go to different page within that person (i.e. from address details, to insurance...
6
by: Dirc Khan-Evans | last post by:
I have a problem with a Session variable that dissapears after a postback of one of my pages. This only happens on WIn 2003 servers.. it is fine on my XP dev box. This page opens in another...
2
by: Ned Balzer | last post by:
Hi, Apologies if this is a newbie question, I haven't found the answer in any faqs. I have an asp.net 2.0 page that sets session variables and then redirects to another page. For the page...
9
by: Big Daddy | last post by:
We have a problem where the session is getting abandoned for no apparent reason. It's not timing out. We save some important data in the Session object. The user will click on something, causing a...
13
by: SAL | last post by:
Okay, don't bash me to hard for my design on this app, it's my first web app and it's in production. My basic design is using Datatables created via the designer with a business logic class in...
6
by: =?Utf-8?B?QnJlbmRhbiBLYXk=?= | last post by:
Hi there, We have an ASP.Net application that is generating huge numbers of Context Switches when a certain number of active users are present. We tried changing the configuration of the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.