Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2007, 09:47 AM
Junior Member
 
Join Date: Jul 2007
Posts: 7
Default Zend_Http_Cookie on localhost

Hi,

I want to create a cookie, but it doesn't seem to work on localhost.

Does any body used it before and give me some guidelines other than the documentation?

Snef
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-14-2007, 04:11 PM
Junior Member
 
Join Date: Dec 2007
Posts: 3
Default

Yes, I am facing the same problem.
I tried this code, but it seems not working.
$client = new Zend_Http_Client("http://www.abc.com");
$client->setCookie('var','value',time() + 2678400,'/');

Could anyone can give us some hints.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 07:08 PM
xentek's Avatar
Senior Member
 
Join Date: Feb 2008
Posts: 111
Default

Check out the setcookie documentation on php.net ... there are some caveats with setting cookies that you may be running into. Also, try setting all of the paramaters, even if you want the defaults (just set the defaults), as this can sometimes cause issues in some browsers, which result in the cookie not being set (without error).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:28 PM.