Oddly enough that DID work. But if I specify the domain and path it
doesn't.
I will continue to look into this. In addition I also need to find out
how I can set the secure attribute on the cookie.
Keith
On Nov 9, 2008, at 3:10 PM, Lutz Hühnken wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]