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

  • Home
  • SEARCH
  • 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

HI all can anyone please refer me, the iphone image gallery source code? Any
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
please refer to the link: Crystal Report: Display 0.00 for duplicate values In that
http://www.asp.net/data-access/tutorials/adding-a-gridview-column-of-radio-buttons-cs Please refer the above link. How to select the RadioButton programatically?
Please, provide code examples in a language of your choice. Update : No constraints
Please refer to *** When first time enter the arrangement of items is OK(three
Please refer some good shopping inventory application(stock in-stock out application) open source.
I am using **<style>..{data inside}..</style>** which is there in following code.i have taken all
Can we include a CSS class from code behind for a link button? I

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.