Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AEDB77EE5 for ; Thu, 20 Oct 2011 14:08:58 +0000 (UTC) Received: (qmail 98172 invoked by uid 500); 20 Oct 2011 14:08:55 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 98019 invoked by uid 500); 20 Oct 2011 14:08:55 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 98006 invoked by uid 99); 20 Oct 2011 14:08:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 14:08:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hassan.schroeder@gmail.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-wy0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2011 14:08:49 +0000 Received: by wyh15 with SMTP id 15so3710757wyh.18 for ; Thu, 20 Oct 2011 07:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=OWI2uuvIIJ1rdW/FFZKUVqqPRIDCQ4xUBWYKLM3P+uU=; b=WTr6s7VPScJRgPqsXMy2ZNrEKaabi03bMso4airi6r62MsR0J/c/taM5qgvBKKllWY NFonv1ZfwzhQWh3VuWhEqer9mCXX9tMe3S/SZ0yUOJ1C6zAbxroh6nkvMTYSC3ovzyve 5Y7N2/MK0lTXas1NjIuYGK7rbBTDvIXArc6tA= MIME-Version: 1.0 Received: by 10.216.9.204 with SMTP id 54mr1796712wet.1.1319119708458; Thu, 20 Oct 2011 07:08:28 -0700 (PDT) Received: by 10.216.93.20 with HTTP; Thu, 20 Oct 2011 07:08:28 -0700 (PDT) In-Reply-To: References: Date: Thu, 20 Oct 2011 07:08:28 -0700 Message-ID: Subject: Re: control of session timed out with tomcat From: Hassan Schroeder To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Oct 20, 2011 at 6:51 AM, Alejandro Soto wrote: > Hi my friends, I want to ask you all, If there is a way to control the timed > out of sessions with tomcat, what I need is when the session timed out, > automatically the user is redirected to the login page, Is this possible to > do that from tomcat?, I mean, tomcat triggers some event to the user with > session timed out, with no need user interaction. No. That's not how the web works :-) What you *can* do is put a meta-refresh tag in the head of each page (with the time set the same as your session timeout) that redirects to a protected resource, which will bring up the login page. HTH, -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com http://about.me/hassanschroeder twitter: @hassan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org