473,513 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Urgent! Session State issue

Hi.

I developed an ASP.NET application that users just started testing and found
a huge problem with. In one part of the application I am creating an
instance of the class and save information that users provided there. If
users want to they can view their previously saved entries. At that time I
display the information to them. Another part of the application has
something similar except I save a dataview object that is declared globally
in the module for the duration of the session.

here is what happens: there were several people testing the application and
there were able to see each others data (from the class or the dataview
variable).

I thought that this information was local for the session. How does it work
and how can I make sure that it is only visible to the user who started the
session? Please help. Thanks.
Jul 21 '05 #1
4 1206

"David" <Da***@discussions.microsoft.com> wrote in message
news:96**********************************@microsof t.com...
Hi.

I developed an ASP.NET application that users just started testing and found a huge problem with. In one part of the application I am creating an
instance of the class and save information that users provided there. If
users want to they can view their previously saved entries. At that time I display the information to them. Another part of the application has
something similar except I save a dataview object that is declared globally in the module for the duration of the session.

here is what happens: there were several people testing the application and there were able to see each others data (from the class or the dataview
variable).

I thought that this information was local for the session. How does it work and how can I make sure that it is only visible to the user who started the session? Please help. Thanks.


I had a similar experience with any table that I was filtering. I solved it
by getting the dataview from a copy of the underlying table rather than the
table itself as follows.

dim dt as New datatable
dt = mgDataObjs.mgGetDataTable().copy()
dv = new dataview(dt)
dv.rowfilter ... etc

There may be other or better ways to solve this, but it worked for me.
Hope this helps.

Mike
Jul 21 '05 #2

I had a similar experience with any table that I was filtering. I solved it by getting the dataview from a copy of the underlying table rather than the table itself as follows.

dim dt as New datatable
dt = mgDataObjs.mgGetDataTable().copy()
dv = new dataview(dt)
dv.rowfilter ... etc

There may be other or better ways to solve this, but it worked for me.
Hope this helps.

Mike

I should point out that, in my case, I store the datatable in cache. My
understanding is when you filter the datatable, even from a dataview, it
changes the view of the underlying table data until it is unfiltered. I
would guess that you are caching your datatables.
Jul 21 '05 #3
Actually my problem is that I have several users that work on different
computers can see what others have stored in their local objects (classes,
moduals, public variables).

"vMike" wrote:

I had a similar experience with any table that I was filtering. I solved

it
by getting the dataview from a copy of the underlying table rather than

the
table itself as follows.

dim dt as New datatable
dt = mgDataObjs.mgGetDataTable().copy()
dv = new dataview(dt)
dv.rowfilter ... etc

There may be other or better ways to solve this, but it worked for me.
Hope this helps.

Mike

I should point out that, in my case, I store the datatable in cache. My
understanding is when you filter the datatable, even from a dataview, it
changes the view of the underlying table data until it is unfiltered. I
would guess that you are caching your datatables.

Jul 21 '05 #4
No one can help you if you don't post code that can reproduce this problem.

It sounds like you may have accidentally created a singleton

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"David" <Da***@discussions.microsoft.com> wrote in message
news:57**********************************@microsof t.com...
Actually my problem is that I have several users that work on different
computers can see what others have stored in their local objects (classes,
moduals, public variables).

"vMike" wrote:
>
> I had a similar experience with any table that I was filtering. I
> solved

it
> by getting the dataview from a copy of the underlying table rather than

the
> table itself as follows.
>
> dim dt as New datatable
> dt = mgDataObjs.mgGetDataTable().copy()
> dv = new dataview(dt)
> dv.rowfilter ... etc
>
> There may be other or better ways to solve this, but it worked for me.
> Hope this helps.
>
> Mike
>
>

I should point out that, in my case, I store the datatable in cache. My
understanding is when you filter the datatable, even from a dataview, it
changes the view of the underlying table data until it is unfiltered. I
would guess that you are caching your datatables.

Jul 21 '05 #5

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

Similar topics

3
2403
by: Rob | last post by:
I have a form - when you click the submit button, it appends a variable to the URL (e.g. xyz.cgi?inputID=some_dynamic_variable) It also opens a new page. Now, that some_dynamic_variable is...
8
5211
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
28
3001
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
7
7225
by: zeyais | last post by:
Here is my HTML: <style> ..leftcolumn{float:left;width:300px;border: 1px solid #ccc} ..rtcolumn{float:left;width:600px;border: 1px solid #ccc} </style> <body> <div class="leftcolumn"...
33
3363
by: dembla | last post by:
Hey Frnds can anyone help me in this i need a program in 'c' PROGRAM to print NxN Matrix 9 1 8 1 2 3 2 7 3 as 4 5 6 6 4 5 7 8 9 in sorted form
8
2752
by: ginnisharma1 | last post by:
Hi All, I am very new to C language and I got really big assignment in my work.I am wondering if anyone can help me.........I need to port compiler from unix to windows and compiler is written...
1
1904
by: alok sengar | last post by:
hi, I have already tried this URL's code "http://www.java2s.com/Code/CSharp/Network/SimpleSNMP.htm" but I am getting error when i am creating a UDP type Socket and recieving packet from this...
3
6434
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
1
2102
by: rajesh.us.it.recruiter | last post by:
Hi Guys/Partners, We have a URGENT Requirement for Perl Programmer with H1 visa in India/US for one of our prestigious Client. Location : New Jersey Requirements : Should be very strong in...
7
5946
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
0
7259
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
7158
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
7535
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...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4745
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
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
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.