aspose file tools*
The moose likes Servlets and the fly likes if client has more than one cookie how it'll decide Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "if client has more than one cookie how it Watch "if client has more than one cookie how it New topic
Author

if client has more than one cookie how it'll decide

sakthi vadivel
Ranch Hand

Joined: Dec 16, 2007
Posts: 41
hiii folks

I have a general doubt about session management using client side cookie. think we have opened many sites in that 3 or 4(site1,site2,site3) sites creates a session and stores cookie into client.

when we are accessing site2 how browser will find out this is the cookie for the site2.

thanks in advance


sakthi SCJP, SCWCD OCA
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60082
    
  65

Cookies are associated with the domains, and even paths within a domain, that created them.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: if client has more than one cookie how it'll decide
 
Similar Threads
sessionId
Doubts on Cookie..
Confusion about session destruction
Passing Http headers to a different domain.
Cookies in encrypted form