"WebRequest provides additional support for web-only client requests
such as cookie and file manipulation."
says WebRequest's header but no cookie handling is actually
implemented. So I played around with it a bit.
http://veikkomakinen.com/agavi/WebRequest.diff.txt
Main features:
- default values for lifetime (in seconds, 0 for undefined), path,
domain and secure (see http://www.php.net/setcookie) can be given in
context.ini. for example:
request.param.cookie_lifetime = 3600
request.param.cookie_path = "/myforum"
- cookies can be set using default parameters or different ones
- values from $_COOKIE can be read just like other request parameters
with getCookie($name, $default)
Is this feasible? Should it be added to official WebRequest? Any
feedback will be appreciated.
-veikko
_______________________________________________
agavi-dev mailing list
[email protected]
http://labworkz.com/cgi-bin/mailman/listinfo/agavi-dev