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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:41:36+00:00 2026-05-27T01:41:36+00:00

Hi all, I have gone through this example to end session when user was

  • 0

Hi all,
I have gone through this example to end session when user was inactive for some amount of time which works fine

http://www.philpalmieri.com/js_sandbox/timedLogout/

But when it redirects back to logout page and if I access the page with sessions I am able to see the page access with the data. I don’t want this to be done. When user logged out on inactive session through the jQuery function I would like to kill the session which I am having too? How can I achieve this?

  • 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-27T01:41:36+00:00Added an answer on May 27, 2026 at 1:41 am

    You may use logout_url option for that purpose. Create generic http handler in your project and use it for performing logout on server:

    Hahdler’s code:

    public class LogoutHandler : IHttpHandler, IRequiresSessionState
    {
    
        public void ProcessRequest(HttpContext context)
        {
            context.Session.Abandon();
            FormsAuthentication.SignOut();
        }
    
        public bool IsReusable
        {
            get
            {
                return true;
            }
        }
    }
    

    markup:

    $(function () {
         $(document).idleTimeout({
              inactivity: 30000,
              noconfirm: 10000,
              sessionAlive: 10000,
              logout_url: '<%= ResolveClientUrl("~/LogoutHandler.ashx") %>',
              redirect_url: '<%= ResolveClientUrl("~/LogoutHandler.ashx") %>' // suggested by Ramakrishna
         });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all, I have gone through all the questions here regarding the inclusion
I have gone through all available study resources in the internet as much as
Hii all m trying to implement Drag and Drop in 3.0.i have gone through
I have gone through all the suggested links and answers and have come to
While attempting to build a website, i have gone through many online tutorials. Thanks
I have a large list of entities which the user needs to be able
I have gone through a long tutorial on W3Schooles to learn CSS; I learnt
Over the years as I have gone through school and been working in the
I have gone through Highcharts options needed to be set for xAxis properties to
I have gone through the tutorial for component development at http://docs.joomla.org/Developing_a_Model-View-Controller_(MVC)_Component_for_Joomla!1.7_-_Part_06 . While the

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.