lua-users home
lua-l archive

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


I believe you need to read the spec if you have more
requirement but just a quick response:

print("Set-Cookie: your_cookie=something")

the returned cookie is in HTTP_COOKIES(or something
like that)

that is why I advice you do a popen('env') as that
would get you all the environment variables and HTTP_*
are the headers from the client.



--- Jilani Khaldi <jilani@cheapnet.it> 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!
> 
> -- 
> ***
> Jilani KHALDI
> http://www.dotpas.org
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ