Click here to Skip to main content
16,020,447 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all
M using data caching in asp.net 1.1

Actucally in one of my web form...user enter more than 200 entries in one time. during the data enteries some times connection is lost and all the data entered is lost.

For this i have saved that data in cache memory. but the problem is the data entered by one user can be reterived by another user. i want to stop that.

One user can't reterived that another user data and also the data entered by user can only be reteried on the same machine..

how this can be achieved??

thanks
Jagwinder
Posted

1 solution

"One user can't reterived that another user data and also the data entered by user can only be reteried on the same machine.."

Along with data, cache/store the userID/username and the system accessing data/currently connected. Now accordingly use it in your code. If same user connects then allow.

If cache is lost, so is the data along with useridentity.
 
Share this answer
 
Comments
Jagz W 28-Jun-10 3:13am    
The User problem is solved by saving user ID. but how i can wheather it is the same machine or not??
Sandeep Mewara 28-Jun-10 3:17am    
I think you can track the IP requesting.
Jagz W 28-Jun-10 3:24am    
Is there any another way to achieve this??
Jagz W 28-Jun-10 3:25am    
I mean can we store the data in client machine??
Sandeep Mewara 28-Jun-10 3:34am    
Yes you can try to use Cookies on client machine. One other way to manage state.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900