On 25/01/2010 15:51, Ryan Pusztai wrote:
Is there a way to create a cookie that lasts for more than a session in
Orbit. After the user closes the browser and reopens it the cookies I
create with 'web:set_cookie()' are not remembered. Is there a way to
make them stay between browser sessions?
--
Regards,
Ryan
I guess that you just need to provide an 'expires' value.
-- will expire roughly in two days
local expiration_date + os.time() + 3600 * 48
response.set_cookie("test", {
value = "foo",
expires = expiration_date
})
_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/