I got it to work, by NOT using the assign action, and by using the example that 
is in the Manual.

<@ASSIGN NAME=fred SCOPE=cookie VALUE="You were here." EXPIRES="<@TOGMT 
TS=<@SECSTOTS SECS='<@CALC EXPR="<@ TSTOSECS
TS=<@CURRENTTIMESTAMP>>+604800">'>FORMAT="datetime: http">">

Why the assign action doesn't work, I can't say. I am not purging anything. I 
double checked that, by opening the taf in BBedit and searching for Purge.

The assignment always had a value I think, because when I ran debug the values 
always showed up.

The one question I have about using the example above is the EXPIRES attribute.

Can i do this and geg a year on the expires parameter?

<@ASSIGN NAME=fred SCOPE=cookie VALUE="You were here." EXPIRES="<@TOGMT 
TS=<@SECSTOTS SECS='<@CALC EXPR="<@ TSTOSECS
TS=<@CURRENTTIMESTAMP>>+1314000">'>FORMAT="datetime: http">">

Thanks for the continuing support.

Mark


On Oct 13, 2014, at 7:40 PM, Robert Shubert <[email protected]> wrote:

> Are you setting a custom http header?
>
> Are you possibly purging the cookie scope?
>
> Does the assignment have a value? I'm not sure if cookies are set if the 
> value is empty.
>
> Robert
>
> -----Original Message-----
> From: David Mark Weiss [mailto:[email protected]]
> Sent: Monday, October 13, 2014 7:01 PM
> To: [email protected]
> Subject: TeraScript-Talk: Cookie scope
>
>
> My app has decided to stop writing cookies.
>
> I use the variable action. I choose cookie scope. Name the cookie and the 
> <ARG> that is it's content.
> Then I control click the variable and select properties.
>
> I set the variable to expire in 44 days, current server, root. I have done 
> this before.
>
> However, when I go to the browser, either Safari or Chrome, no cookie is 
> being written.
>
> Other taf's still seem to be writing this cookie.
>
> When I use debug, it shows that the cookie variable is being written.
>
> I can't find the variable in any browser record
>
> When I delete all cookies, and reload  Witango_userreference writes to the 
> browser. So something can be written.
>
> No other domain has the same cookie names.
> '
>
> Other taf's still seem to be writing this cookie.
>
> There are no other cookie assignments in this taf.
>
> What could be the reason why this cookie isn't writing in this TAF
>
> Witango 5.5, OSX Server 10.4,
>
> Thanks
>
>
>
>
> ----------------------------------------
>
> To unsubscribe from this list, please send an email to 
> [email protected] with "unsubscribe terascript-talk" in the body.
>
>
>
>
> ----------------------------------------
>
> To unsubscribe from this list, please send an email to 
> [email protected] with "unsubscribe terascript-talk" in the body.
>




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

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

Reply via email to