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 4B3CF10A94 for ; Fri, 14 Mar 2014 22:35:30 +0000 (UTC) Received: (qmail 9874 invoked by uid 500); 14 Mar 2014 22:35:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 9818 invoked by uid 500); 14 Mar 2014 22:35:25 -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 9809 invoked by uid 99); 14 Mar 2014 22:35:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 22:35:24 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of donahulf2@gmail.com designates 209.85.219.54 as permitted sender) Received: from [209.85.219.54] (HELO mail-oa0-f54.google.com) (209.85.219.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 22:35:19 +0000 Received: by mail-oa0-f54.google.com with SMTP id n16so3293953oag.41 for ; Fri, 14 Mar 2014 15:34:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=GNd3mVvJkM5ra2T4LxDpRzjBHRwC1t4fLr+tRawpWqY=; b=OqXbZ0PTHTcYjAfvVNXKNaPN4h3J1uxBrm4AzfHnxN6KVHOJRlBktqWvuS/pJok1QK 7fn2M8bdczwqTPIB0feTPMNqdMwvzBpc9rL1ubDyx015DBpslIiuCz9mplgGoZTJtGYz 2BbhIfhZciS36NZRrf9UV9zfH5AC5Qym/xr2hH0/i2lQZtBKYpBsUidl96E7ArqSh9mm ULMwZH7s+EnbR+6SKgaaquadDHvIz0eGGv6cUojnN44LrbWCIbjW5ZwaXO4rdPbYUZ2v P/EkasSdB+ly4wfZ3ODdhnlTBdEkChlBHFo3Jm74jWoDSAHIlsUWBLuc/shqu5FcR9j/ ECmA== MIME-Version: 1.0 X-Received: by 10.60.115.129 with SMTP id jo1mr9195431oeb.0.1394836497891; Fri, 14 Mar 2014 15:34:57 -0700 (PDT) Received: by 10.60.144.69 with HTTP; Fri, 14 Mar 2014 15:34:57 -0700 (PDT) In-Reply-To: References: Date: Fri, 14 Mar 2014 15:34:57 -0700 Message-ID: Subject: Re: Tomcat 7 : Configure redirect url for session timeout From: Leo Donahue To: Tomcat Users List Content-Type: multipart/alternative; boundary=089e011619b6fa075504f498ad55 X-Virus-Checked: Checked by ClamAV on apache.org --089e011619b6fa075504f498ad55 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Mar 14, 2014 at 3:04 PM, Akash Jain wrote: > I have following configuration in `web.xml` in tomcat 7. I am wondering if > I can add any configurable parameter here, so that if user tries to do any > operation post 30 minutes, I redirect the user to our home page. > > > 30 > > mydomain.mycompany.com > true > false > > COOKIE > > My first thought is you could catch the error in web.xml using an error-page and error-code 408, and then use a location to redirect? http://tomcat.apache.org/tomcat-7.0-doc/servletapi/javax/servlet/http/HttpServletResponse.html --089e011619b6fa075504f498ad55--