Re: Plain CGI with Lua
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Plain CGI with Lua
- From: Brett Nash <nash@...>
- Date: 2008年5月04日 11:07:52 +1000
On Sat, 2008年05月03日 at 22:20 +0200, Jilani Khaldi wrote:
> > Or os.getenv if you know the variables you need (they are pretty standard).
> I have solved it only partially. I need now only to know how to read and
> write cookies. Any idea?
> Thanks!
To set a cookie:
Set-Cookie: cookiename=value ; <optional params>
(Someone else posted the RFC you need for the full info)
To read them
os.getenv("HTTP_COOKIE")
[Under apache anyway]
Regards,
nash