lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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