You're welcome. As long as you set the cookie path and stick to that path it
doesn't matter where the user enters the site. I normally use either / or
/context for my cookies.

Regards,
Randy Burgess
Sr. Software Architect
D5 Systems, LLC


> From: Pierre Thibaudeau <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <user@struts.apache.org>
> Date: Sat, 9 Aug 2008 13:37:35 -0400
> To: Struts Users Mailing List <user@struts.apache.org>
> Subject: Re: [S2] general question about cookies and namespace
> 
> Thanks Randy.  That confirms what I have been discovering since last night.
> 
> This is a little annoying given that there are some bits of information that
> I would love to set for the entire site.  For instance, if I wish to
> remember the current surfing language of a user and set that in a cookie
> with path "/", who's to say that, on the next session that the user will
> start, she won't enter the site through a different logical path?
> 
> Is there such a thing as site-wide cookies?
> 
> 2008/8/9 Randy Burgess <[EMAIL PROTECTED]>
> 
>> If the path is different then they are completely separate cookies. So you
>> could have a cookie named "fruit" and a path of "/root" with a value of
>> "apple". You could have another cookie named "fruit" but with a path of
>> "/root/anotherpath" and it has a value of "orange". If you don't set a path
>> for the cookie it gets set for you so to stop this from happening I always
>> set the path explicitly.
>> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to