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 983205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:49:09+00:00 2026-05-16T04:49:09+00:00

In the logout link button click event I have cleared the session variables. I

  • 0

In the logout link button click event I have cleared the session variables. I am checking these session variables for null values at each page’s load event. If it has the null value redirecting them to the login page.
But the problem is whenever I click the browser back button, the page_load event won’t get called. For that I have cleared the the browser cache history.
Please help me someone where I am missing…

  • 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-16T04:49:10+00:00Added an answer on May 16, 2026 at 4:49 am

    You will need to make sure the pages behind the login (those that can only be accessed after login) are not cached in the browser:

    Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);
    

    If using forms authentication, you will also need to abandon the session and logout:

    Session.Abandon();
    FormsAuthentication.SignOut();
    

    See this, this and this.

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

Sidebar

Related Questions

i have a logout [link button] in master page and i want to show
I have a simple GAE app that includes a login/logout link. This app is
How do I convert the following from a link to a button? <h:outputLink value=#{request.contextPath}/j_spring_security_logout>Logout</h:outputLink>
I have a click function, for when a user logs out $('#logout').click(function(){ // update
I have an issue with my login functionality. When user clicks the logout link
In my web page there is link button and on that link button i
I have the following code: <li><a id=logout class=access button red href=/MyAccount/Access/Logout data-href=/MyAccount/Access/Logout title=Logout><span class=smaller>LOGOUT</span></a></li>
My init line: <script type=text/javascript>function initFB(){FB_RequireFeatures([XFBML], function(){FB.init(xxxx, xd_receiver.htm);});}</script> My logout link: <a onclick=FB.Connect.logoutAndRedirect('account/logout');>Log Out</a>
I need a link in django template which turns into logout if user is
So if a logout button is clicked on the webview (which is a spring

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.