OutputCache VaryBySession

Posted on 2011-05-03
Last Modified: 2012-05-11
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?
Question by:rodrigo-studio6
    LVL 83

    Accepted Solution

    LVL 19

    Expert Comment

    by:Amandeep Singh Bhullar
    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now