MC,


The script action (javascript) is server side only. Since it does not interact 
with the browser, you can’t use it to set cookies.



Your use of the Assign Action in #2 is the correct way to set a cookie in the 
browser, which will then be available on subsequent requests by that browser 
session.



Robert



From: MC Tay [mailto:[email protected]]
Sent: Tuesday, May 10, 2011 1:05 PM
To: [email protected]
Subject: Witango-Talk: Set and Get Cookie



Hi:

Scenario #1: I tried to use javascript to set cookie in "SetCookie", the result 
was blank in the GetCookie until I refresh the browser or clicked on something 
else.

Emacs!

Scenario #2: But, when I used the AssignCookie action, I see the cookie 
immediately with the GetCookie without having to refresh the browser or click 
on something else.

Emacs!

It looks like the SetCookie (javascript) in Scenario #1 is not completed yet 
before it executed the GetCookie. What do I need to do in Scenario #1 for the 
SetCookie javascript to finish its job before the GetCookie?

Thanks!

MC



  _____

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.



----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe witango-talk" in the body.

<<image001.jpg>>

<<image002.jpg>>

Reply via email to