Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Setiing cookie
Fri, Nov 1 2013 9:25 AMPermanent Link

Ronald

Hi,

I am trying to set a cookie, but somehow the cookie seems not to be written:
My cookies are enabled and I have tried it from the IDE and form
'localhost".
What is wrong with this code?

Cookies.Set('username',edUserName.Text,-1,'','/',false);

Thanks,
Ronald
Tue, Nov 5 2013 3:27 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< What is wrong with this code?

Cookies.Set('username',edUserName.Text,-1,'','/',false); >>

You're mixing up the path and the domain.  Just use this:

Cookies.Set('username',edUserName.Text);

to set a cookie for the entire domain/path.

Tim Young
Elevate Software
www.elevatesoft.com

Image