rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: raybob on April 16, 2011, 03:00:12 PM

Title: Cookies don't work
Post by: raybob 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=/.}

Title: Re: Cookies don't work
Post by: rejetto 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
Title: Re: Cookies don't work
Post by: raybob 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.
Title: Re: Cookies don't work
Post by: rejetto on May 04, 2011, 05:09:19 PM
yes, there's a bug. Fixed in next release (281)
thanks for reporting
Title: Re: Cookies don't work
Post by: raybob 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; .}