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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -