I am still having trouble dealing with the effective use of setting and
clearing cookies properly using the Revolution server at On-Rev.

put new header "Set-Cookie: one=datavalue"
put new header "Set-Cookie: two=datavalue2"


Yes, that sets the values that can be recovered, but to delete the cookie by
attempting to set an early expiry date seems to fail every time.

put new header "Set-Cookie: two=datavalue2 ; expires=May 5,2010;"

put "Set-Cookie: " && tln & "=" &  urlEncode(pArray[tln]) & "; expires=" &
("March 24, 2012") & ";  path=/;" into theCookie
put new header theCookie


I have been around and around to all the forums and see the same posts about
getting put new header to work last year but nothing about actual success
setting the expiry date.

PHP makes it easy:

<?php
$value = "my cookie value";

// send a cookie that expires in 24 hours
setcookie("TestCookie",$value, time()+3600*24);
?>


Tested, PHP works, just like this. Sets the date, too.

In Rev it's as if the put new header command truncates the other parameters.


Surely someone here has a solution to this in RevTalk.

thanks

sqb




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  <http://www.google.com/profiles/sbarncar>
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to