getPath() in only useful for setting cookies. The browser only sends the name
/value pairing of the cookie back to you. It omits path and expiration.
-Tim
Trond G. Ziarkowski wrote:
Hi all!
I'm making a filter that checks that my cookies are set, and sets them
if they are missing.
Code for
Thanks Tim,
I was trying to use the same cookiename for different paths in my
webapp, but since the path is not sent I just have to use different
cookienames.
Trond
Tim Funk wrote:
getPath() in only useful for setting cookies. The browser only sends
the name /value pairing of the cookie back
All is not lost. The cookie spec says that overlapping cookie names need to
be sent from most specific to least specific. But if you have the same cookie
name across many domains (foo.domain.com vs bar.domain.com) - then things get
a little ambiguous.
-Tim
Trond G. Ziarkowski wrote:
Thanks
I haven't experience this myself, but as no-one else has responded yet, here
are some thoughts that come to mind in case they help :-)
Perhaps the session associated with cookie C1 has expired by the time that
Tomcat receives the request that contains C1? Then, if your code uses
Hey,
Is proxy involved on client's side ?
-Mark.
--- Todor Todorov [EMAIL PROTECTED] wrote:
Hello there,
We experienced strange behavior with Tomcat under heavy load.
Fairly simple JSP generates a page based on a persistent cookie,
unfortunately the browser receives someone else
-Original Message-
From: John MccLain [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 24, 2004 11:37 AM
To: Tomcat user list
Subject: cookies and sessions
could someone give me a process flow description of how
cookies work, i.e.,
1)user authenticates - what is actually
Howdy,
How do you know it's not a Safari bug?
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Hollerman Geralyn M [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 11, 2004 3:09 PM
To: Tomcat Users List
Subject: cookies, Safari, and Tomcat
I'm trying to figure out
Hollerman Geralyn M wrote:
I'm trying to figure out some behavior I'm seeing only when I use
Safari (v1.25 - downloaded from the Apple site last week) and Tomcat.
This involves cookies. I am using Tomcat 5.0.16. I have written a
servlet that sends a cookie back to the server for use later on;
Aadi Deshpande wrote:
Hollerman Geralyn M wrote:
I'm trying to figure out some behavior I'm seeing only when I use
Safari (v1.25? - downloaded from the Apple site last week) and Tomcat.
This involves cookies. I am using Tomcat 5.0.16. I have written a
servlet that sends a cookie back to the
Abdul,
So, I have added the cookies value in servlet, and I can get the cookie
value in jsp. When I work with the same browser fine working. But when close
and open the new browser window I cant get the cookie values.
Setting cookie,
res.addCookie(new Cookie(entID,eID));
I checked the javadoc documentation for the Cookie class, and it doesn't
seem to mention the default life of a Cookie object once sent to the
browser. I'm inclined to think that the default is that it will live as
long as the browser session does (especially because of your evidence).
It is.
thank you patrick. that worked.
I assumed a cookie once set was available for the all files in that location.
Is it the same for sessions?
-Original Message-
From: Patrick Willart [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 5:21 PM
To: Tomcat Users List
Subject: RE
Since you don't specify the path when you write the cookie it's in
/app/servlet. This means that this cookie can only be read by pages/servlets
in this directory or subdirectories.
Your JSP is in a different directory structure and is not allowed to read
the cookie you wrote.
add
Paul Yunusov [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Friday 10 January 2003 04:23 pm, Luc Foisy wrote:
Is the Cookie defined in the Servlet API permanent by
default? It doesnt
really say that in the docs. You might be able to assume
that
Paul Yunusov [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Friday 10 January 2003 04:23 pm, Luc Foisy wrote:
Is the Cookie defined in the Servlet API permanent by
default? It doesnt
really say that in the docs. You might be able to assume
On Friday 10 January 2003 04:23 pm, Luc Foisy wrote:
Is the Cookie defined in the Servlet API permanent by default? It doesnt
really say that in the docs. You might be able to assume that since you
have a setMaxAge() method, but if you want to change it back to permanent,
there would be no way
Paul Yunusov [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Friday 10 January 2003 04:23 pm, Luc Foisy wrote:
Is the Cookie defined in the Servlet API permanent by default? It doesnt
really say that in the docs. You might be able to assume that since you
paolo ciao wrote:
I know that servlet use cookies (if client support it)
to manage session id.
My question is quite simple: where this cookie is?
I need to understand this because I have to test my
application with Jmeter and I want to track
session...how can i do?
Thanks for any help.
Kyller,
I am using 4.0.1 on Linux (RH7.1) with cookies. I add a custom cookie for
tracking which server behind the CSS is being accessed and this works fine.
I initially had difficulty seeing the cookie on the client side so I ended
up dumping the raw request to the console and viewing it. One
Hi Jeff,
I'm running on Red Hat 7.2. I think that it's not the reason of my
problem :-)
I got the same problem before writting the previus message, and fixed it
in the same way. But it still working only if my client is a mozilla
browser running on a linux machine. If the client is an
On Mon, 24 Dec 2001 14:41:20 +0100
Wouter Boers [EMAIL PROTECTED] wrote:
That is not true. Then you have to pass the session cookie as a
parameter through URL rewriting. You see that quite often. But then
again, who does not accept cookies nowadays?
Many people, including myself.
The point
yes it does so no you can't.
ditto tomcat 4 - cookies is the only reliable method for identifying an
individual computer, so is therefopre the only method for managing sessions.
ian
- Original Message -
From: Zsolt Koppany [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday,
Hm, when a browser (or firewall) doesn't allow Cookies, I cannot use
seesions. This is not good.
Zsolt
On Monday 24 December 2001 09:25 am, you wrote:
yes it does so no you can't.
ditto tomcat 4 - cookies is the only reliable method for identifying an
individual computer, so is therefopre
To: Tomcat Users List
Subject: Re: Cookies in tomcat-3.2.3
Hm, when a browser (or firewall) doesn't allow Cookies, I cannot use
seesions. This is not good.
Zsolt
On Monday 24 December 2001 09:25 am, you wrote:
yes it does so no you can't.
ditto tomcat 4 - cookies is the only reliable method
Cookie can be one of the available methods, but I am not certain it
is only method for that purpose.
Pae
yes it does so no you can't.
ditto tomcat 4 - cookies is the only reliable method for identifying an
individual computer, so is therefopre the only method for managing
sessions.
ian
I have no idea, but could it have something to do with \or\n - \n
conversion somewhere maybe ?
Mikael
- Original Message -
From: James, Stuart [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 24, 2001 4:57 PM
Subject: Cookies.
Development Machine is Tomcat-3.2.3 /
Hi,
[EMAIL PROTECTED] said:
: I am sending a cookie of 6402 bytes from Internet Explorer to tomcat,
: but tomcat tell's me that the received length is 5095 bytes ?
: The data is a very simple strings (comma separated values) the strings
: are escaped/unescaped before sending.
You're
If it returns null, then I read something about that this week.. Maby
searching on of the archives for cookies helps you find the problem /
solution...
Also tomcat version could be important and the exception (if any..)
Mvgr,
Martin
-Original Message-
From: David Oxley [mailto:[EMAIL
At 08:28 AM 8/17/2001, you wrote:
I am trying to set a cookie that can be picked up from a different server to
the one setting it. They both belong to the same domain (daves.domain.com
and daves2.domain.com).
The first server sets the cookie and redirects to the second server where
the cookie is
(I'm not sure what this question has to do with cookies,...)
I use JDBCRealm and I'd like to have the connection times out after a
certain period of time. Currently, it seems that once you have logged
in, as long as you don't exit from your browser, the servlets
can be run forever. Is there
Look at the session-timeout directive in your web.xml file. The default is
30 minutes.
--jeff
- Original Message -
From: Oki DZ [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 10:26 PM
Subject: Cookies
Hi,
I use JDBCRealm and I'd like to have the connection
Hi all --
I have a question regarding cookie expiriation. I am trying to expire a
cookie immediately, and the Servlet Specification (and javadoc) states
that:
Cookie's public void setMaxAge(int expiry)
Sets the maximum age of the cookie in seconds.
A positive value indicates that the
32 matches
Mail list logo