rejetto forum

Cookies don't work

raybob · 5 · 6301

0 Members and 1 Guest are viewing this topic.

Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
Whenever I try to put in something like {.cookie|test.} on a page, it always shows this:

macro error: cookie
not supported or illegal parameters

I also tried creating a cookie and then retrieving it in your test.vfs that you sent me, and I got the same result, so hopefully you'll be able to reproduce the issue.  I'm using build 277.
Also, I may be doing something wrong but when setting a cookie I can't get the path or expires parameters to work right either, it always says expires at end of session.  Here's an example of what I put in:    

{.cookie|signedup|value=yes|expires=+10|path=/.}

« Last Edit: April 16, 2011, 03:14:26 PM by raybob95 »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
cookie bug fixed in next release (278).
thanks for reporting.

other report moved to http://www.rejetto.com/forum/index.php/topic,9619.0.html


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
When settings a cookie, the parameters for path and expires still don't work.  

Whatever I put in, the path always reads as / in the browser, and the expires is always at the end of session.

Reading cookies does now work, however.
« Last Edit: May 03, 2011, 10:22:45 PM by raybob95 »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
yes, there's a bug. Fixed in next release (281)
thanks for reporting


Offline raybob

  • Tireless poster
  • ****
    • Posts: 454
    • View Profile
    • FileSplat.com
If you need parameters you can bypass the problem with {.add header|Set-Cookie: cookie=value; Path=/; expires=Mon, 31-Dec-2029 00:00:01 GMT; .}