Hm. Works fine for me.

What happens if you leave out domain and path, like in

cookies.writeCookieValue(Constants.COOKIE_NAME, value)

?



On Wed, Nov 5, 2008 at 10:12 PM, Keith Bottner <[EMAIL PROTECTED]> wrote:
> I am attempting to set a cookie for a user; however, it does not seem to be
> retained by the browser. I have tried all 3 major browsers.
>
> Here is the relevant code:
>
> @Inject
> private Cookies cookies;
>
> private void setCookies()
> {
>  String value = "test";
>  cookies.writeCookieValue(Constants.COOKIE_NAME, value, "/", "localhost");
> }
>
> Has anyone had any problems with cookies or know of any problems?
>
> One more thing, I am doing all of this from within an onSetupRender within a
> component.
>
> Thanks in advance,
>
> Keith
>
>
>

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

Reply via email to