Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3348380
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:32:09+00:00 2026-05-18T01:32:09+00:00

please refer to the link why does the value of session variable remain even

  • 0

please refer to the link

why does the value of session variable remain even after all the code of destruction?

in the above the problem is that login function made by me fails, as the browser is displaying the cached version of the page, which also I DO NOT KNOW WHY is capable of performing all the functions for a certain time limit, after which it REALIZES THAT ITS CACHED!!

so,

how to remove the cached version of the website,

OR

how to tell DO NOT MAKE MY COPY IN CACHE!!!

by using c#

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T01:32:09+00:00Added an answer on May 18, 2026 at 1:32 am

    Most you can do is add expires meta tag to the pages that you don’t want browser to cache

    <META HTTP-EQUIV="EXPIRES" CONTENT="0">
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="No-Cache, No-Store">
    

    Or alternately in ASP.NET after Page tag add

    <%@ OutputCache Duration="0" Location="none" NoStore="true" %>
    

    In code behind for C#

    Response.Cache.SetNoStore();
    Response.Cache.SetExpires(DateTime.Now);
    Response.Cache.SetCacheability(HttpCacheability.NoCache);
    

    For more information refer to http://msdn.microsoft.com/en-us/library/06bh14hk(v=VS.100).aspx

    A further detailed article here http://www.mnot.net/cache_docs/

    EDIT: Updated after comments from Alxandr

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please refer to this background question. After constructing this COUNT, how would I then
Please refer to my previous question here: Link Here Will this project type be
I have many TextBOX in asp.net which accepts the value from user and stores
I'd really appreciate any help on this. There is this Dojox Datagrid that I'm
I am creating a utility which depends on libassuan aside other depends. While these
I always get confused between the static and dynamic scoping and hence need someone
I would like to use Visual Studio 2008 to the greatest extent possible while
I wish to retrieve the source of a website, that is dynamically generated upon
I have a pool of items in the drag list which is connected to
in my journey of learning hibernate i came across an article on hibernate site

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.