set your cookie age to -1
-Original Message-
From: Shravan Shashikant [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 12:15 PM
To: [EMAIL PROTECTED]
Subject: Cookie Problem
Hi there,
I have a problem using Cookies in my servlet.I am able to create the
cookie and log in but
The request.getCookies() will return null if no cookies were sent with the
request.
You should check that cookies != null before checking cookies.length
-Original Message-
From: Paul [mailto:[EMAIL PROTECTED]
Sent: 12 August 2003 17:13
To: Tomcat Users List
Subject: cookie problem
I hav
As Andy remarked: the call request.getCookies(); should return null if
there are no cookies submitted. This behaviour is specified in the
JavaDocs for both the Servlet 2.2 and 2.3 specs. Tomcat 3 was in error
and the behaviour has been corrected for Tomcat 4 and later.
HTH,
Jon
Paul wrote:
I
thank you. That worked.
-paul lomack
- Original Message -
From: "Bodycombe, Andrew" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, August 12, 2003 12:14 PM
Subject: RE: cookie problem
> The request.getCooki
Just put one more check
if(cookies.length==0) return;//OR whatever you want to do when no cookie is
there..
:)
-Original Message-
From: Paul [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 9:13 AM
To: Tomcat Users List
Subject: cookie problem
I hava a JSP application under Tomca
Paul, I ran into something just like this an about went out of my mind
trying to figure out what was going on. Try doing it this way instead. It
works for me.
-Brian
Cookie[] cookies = request.getCookies();
boolean foundCookie = false;
if(cookies != null) {
for(int i = 0; i < cookies.le
http://nagoya.apache.org/bugzilla/buglist.cgi?resolution=INVALID&resolution=WONTFIX&bugidtype=include&chfieldto=Now&product=Tomcat+4&short_desc=cookie&short_desc_type=allwordssubstr&bug_file_loc_type=allwordssubstr&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=
Pratik Machchar typed the following on 05:57 PM 12/5/2000 +0530
>I set a cookie with certain maxAge() say 200.
>now on logout I wan't to remove that cookie I set maxAge(0) then also this
>cookis is not removed
Are you getting the cookie with request.getCookies() and changing its
maxAge, or creat
- Original Message -
From: "Kief Morris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 05, 2000 8:10 PM
Subject: Re: Cookie problem max age problem
> Pratik Machchar typed the following on 05:57 PM 12/5/2000 +0530
> >I set a cooki
I found the problem with this configuration. The URL hostname was changing
in certain cases, so the cookies were not available. Making sure the URL
format is managed properly solves the problem.
---
David Lewis
Pershing Technology Group, 51 Monroe St. Suite 1500, Rockville, MD 20850
301-517-4909
> From: Jose Euclides da Silva Junior - DATAPREVRJ
> Subject: Cookie problem max age problem - Best practice to solve it
> this question is very important to me. My application works with an external
> authentication app ( like a plugin).When the user is logged, a browser
> cookie is created. The
11 matches
Mail list logo