OutputCache VaryBySession

I have a web application that has many kind of users.
There are visitors and authorized users that can access some pages.

I want to use OutputCache in some very heavy pages.  The page's contents are dynamically generated but they differ from one another depending on the user's profile.  So let's say:  There are visitors, Admins and Students visiting the pages.
Let's supose that Admins have a Session called SegurityLevel=0, Adminis have a session securityLevel=2 and Students have sa securitylevel=1.

What I want to do is cache "some_page.aspx" for those 3 kind of users using session("SecurityLevel").

How can I do that?  Anyone?
Who is Participating?
Amandeep Singh BhullarCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.