Author Topic: Cookies don't work  (Read 2792 times)

0 Members and 1 Guest are viewing this topic.

Offline raybob

  • Tireless poster
  • ****
  • Posts: 453
    • View Profile
    • FileSplat.com
Cookies don't work
« on: April 16, 2011, 03:00:12 PM »
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: 12949
    • View Profile
Re: Cookies don't work
« Reply #1 on: April 23, 2011, 12:06:18 PM »
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: 453
    • View Profile
    • FileSplat.com
Re: Cookies don't work
« Reply #2 on: May 03, 2011, 10:18:46 PM »
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: 12949
    • View Profile
Re: Cookies don't work
« Reply #3 on: May 04, 2011, 05:09:19 PM »
yes, there's a bug. Fixed in next release (281)
thanks for reporting

Offline raybob

  • Tireless poster
  • ****
  • Posts: 453
    • View Profile
    • FileSplat.com
Re: Cookies don't work
« Reply #4 on: September 01, 2011, 07:27:06 PM »
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; .}