473,383 Members | 1,733 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,383 software developers and data experts.

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 1199

"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
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
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
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
7
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
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
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
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
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.