zend framework - php setcookie vs Zend_Http_Cookie -
why code not working, , how can make works
setcookie('cookie_name','cookie_value');
the code not create cookie:
$cookie=new zend_http_cookie('cookie_name','cookie_value','.google.com');
or difference between:
setcookie('cookie_name','cookie_value');
vs
$cookie=new zend_http_cookie('cookie_name','cookie_value','.google.com');
thanks
zend_http_cookie not setting cookies, companion class zend_http_client. let's wanted screen scape content off site content available if logged in. use zend_http_client post credentials login form, server send session cookie. include session cookie in subsequent request page want scrape in order simulate logged in user viewing page.
to set cookies in zf can use native php function, or possibly store data in session instead.
Comments
Post a Comment