Hi Ignacio,

2010/1/25 Ignacio Burgueño <ignac...@inconcertcc.com>

> 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
> })


Wow that is not in the manual. I wonder what else I haven't found yet...
-- 
Regards,
Ryan
_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to