+1-888-365-2779
Try Now
More in this section

Forums / Security / Page Expiry

Page Expiry

4 posts, 0 answered
  1. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    09 Jun 2010
    Link to this post
    Hi,

    I need to expire some of the pages in my website as soon as they are rendered. The reason being that they are protected pages, i.e., only authorized users can access those pages. Currently if a user logs out and presses the back button of the browser, he/she is able to view the last page visited, which is an authorised page.

    I came accross this setting in the web.config file:
    <browserCacheSettings lastModifiedDateEnabled="true" contentExpirationEnabled="false">
                    <expirationSettings option="ExpireImmediately" value="0">
                    </expirationSettings>
                </browserCacheSettings>

    But I couldn't find more information about the same in Sitefinity documentation. I'm using Sitefinity Standard Edition 3.7 SP3.

    Please help me with this.

    Thanks,
    Saumitra
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    09 Jun 2010
    Link to this post
    Hi Saumitra,

    You can use CacheSubstitutionUserControls. This blog post contains an example which creates a login user control which uses CacheSubstitution. The whole page is cached but the information coming from this control is not cached.

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    10 Jun 2010
    Link to this post
    Hi Radoslav,

    I went through the post that you mentioned. But I'm still not clear about how will I achieve my objective from that. The post, according to me, talks about server-side ASP.NET caching (output caching). But what I'm looking at is expiring the page from the browser's cache as soon as it is rendered by the browser. I'm looking for some mechanism from Sitefinity, if available, for the same.

    Also, could you put more light on the web.config settings that I mentioned in my earlier post ?

    Thanks,
    Saumitra
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    10 Jun 2010
    Link to this post
    Hello Saumitra,

    The suggested post provides the ability to cache only the page, however not cache the current user (being anonymous or authenticated), isn't this what you are looking for? Sitefinity does not provide the other method which you are trying to achieve. However since a Sitefinity website is an ASP.NET website you can apply methods for this which will work on general ASP.NET website.

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
4 posts, 0 answered