You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Naresh Agarwal <na...@yahoo.com> on 2005/05/25 14:00:07 UTC

[users@httpd] Are cookies associated with connection?

Hi 
 
I've a question on Http cookies.
 
Let's say a http client application is communicating with a web-application, which has two operations "Login" and "getDetails". This web application needs session maintenance using cookies between the "Login" and "getDetails" operation.
 
I call these operations as follows -
 
1. Create a connection to the web server. Call "Login" operation and extract the cookie(s) from the response.
2. Create a *fresh* connection to the web server. Call "getDetails" operation after setting the cookie(s) extracted in step 1.
 
Will this work fine? 
 
Basically I've following doubts - 
 
Are cookies are associated with underlying connection or they are independent of the physical connection. Does web-server care only about the "right" cookie or it also care about the physical connection, which is used to send cookies.
 
thanks & regards,
Naresh Agarwal

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [users@httpd] Are cookies associated with connection?

Posted by Arne Heizmann <Ar...@csr.com>.
Naresh Agarwal wrote:
>  
> Are cookies are associated with underlying connection or they are 
> independent of the physical connection.

Most servers do not support persistent connections anyway (supposedly 
because they're resource-intensive... that's what LiveJournal.com 
sysadmins told me). Clearly, since these services still provide log-in 
mechanisms -- even ones that persist when you close and restart your 
browser! -- the cookies must remain valid throughout several connections.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org