Jump to content

ASP.NET Caching user info?

Go to solution Solved by savstars,

Without seeing the code, I suspect that you are using the static keyword.  Using static on a property of field will make the value available to all requests.

Hey LinusTechTips-watchers-forum-people/heroes!

 

I'm currently working on a (private) screenshot sharing program. The web end is based on ASP.NET/C# because I prefer it that way :Þ

But I've gotn a lot of complaints about 'beta testers' seeing other people's screenshots in their 'manage screenshots' menu/page and even people asking me why they see someone else's name on the top left corner of the page. At first I thought it was something with my code, but after some debugging I've found that it's the page being cached.

The website caches the users cookie info which causes the end-users to have the name of the previous viewer's name and even get some information about that user.

They aren't able to edit descriptions for images of the other users and cannot delete images of them (They can still view the (cached) images page).

I've tried turning of dynamic compression (Even though that wouldn't work anyways) and disabled output caching in the web.config file, without success.

 

Hopefully one of you guys can help me out :Þ

 

Greets

- Tv

Link to comment
https://linustechtips.com/topic/648297-aspnet-caching-user-info/
Share on other sites

Link to post
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×