cookie.get not working.
Closed this issue · 3 comments
pwaterz commented
In vcl_recieve i have this
cookie.parse(req.http.cookie);
cookie.get("login");
I get this error
Message from VCC-compiler:
Expected an action, 'if', '{' or '}'
('input' Line 85 Pos 3)
Running varnish 3.0.4
maklarorg commented
I get the same error when trying this.
lkarsten commented
I'm not sure I understand what is the problem. Have you tried the example VCL provided?
There are also a couple of VCL snippets in the test cases[1], maybe those will point you in the right direction?
1: https://github.com/lkarsten/libvmod-cookie/tree/3.0/src/tests
-Lasse
pwaterz commented
I literally did nothing and came back the next day and it worked. Not sure if something in the varnish daemon is being cached.