Login
Products
Sales
Support
Downloads
About
Home
»
Technical Support
»
Elevate Web Builder Technical Support
»
Support Forums
»
Elevate Web Builder General
»
View Thread
View Thread
The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Setiing cookie
Fri, Nov 1 2013 9:25 AM
Permanent 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 PM
Permanent Link
Tim Young [Elevate Software]
Elevate Software, Inc.
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