RE: Cookie Problem

2001-04-25 Thread Nael Mohammad
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

RE: cookie problem

2003-08-12 Thread Bodycombe, Andrew
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

Re: cookie problem

2003-08-14 Thread Jon Wingfield
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

Re: cookie problem

2003-08-14 Thread Paul
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

RE: cookie problem

2003-08-14 Thread RANDAD,KAILASH (HP-PaloAlto,ex1)
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

RE: cookie problem

2003-08-14 Thread Brian Menke
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

Re: Cookie problem with Tomcat 4.1.24

2003-05-28 Thread Tim Funk
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=

Re: Cookie problem max age problem

2000-12-05 Thread Kief Morris
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

Re: Cookie problem max age problem

2000-12-05 Thread Pratik Machchar
- 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

Re: Cookie problem with nsapi_redirector.so and netscape server 3.6

2002-04-10 Thread DLewis
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

Re: Cookie problem max age problem - Best practice to solve it

2003-07-31 Thread srevilak
> 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