I've got some kind of community website, there are about 40.000 users in database with many property columns. There are two pages where latest and online users are shown based on some kind of criteria ie. gender.
I've made some SQL trick to get only ten rows per page so not that much information is sent back by sql server for search,inbox etc.. and other user based data but online and latest users are global for all users of my website hence i could use some sort of caching for these. Problem is that i use some user variables in Session set upon login thus if i use default output caching Session will be swapped with other users.
How would you solve this issue ? I know few ways but some guys in here got a lot of experience so i wait for your input. I think it is common issue for anyone who did or do application with many users in it. Maybe StackOverflow crew ???
Cheers