Welcome Guest, Not a member yet? Register   Sign In
input->set_cookie or setcookie not work
#7

[eluser]helloworld7[/eluser]
Hi. Thank you. Almost have this figure it out. I did the test you gave me and it worked. Then I tried to move the bar function to my controller B and didn't get the same result as before but I think I may know what's the issue.

I had controller A as /login then controller B as /myaccount/home (I actually have a /myaccount/ dir).

Is it because it's different path? The cookie is only available only for /login and ./*?

But method 1 I had ‘domain’ => ‘.somedomain.com’ on cookie, is that mean it should work for all path for that domain?

If that's the issue. How do I set my cookie so that I can retrieve it from all controller(even with different directory)?


Messages In This Thread
input->set_cookie or setcookie not work - by El Forum - 07-21-2011, 03:10 PM
input->set_cookie or setcookie not work - by El Forum - 07-22-2011, 02:27 AM
input->set_cookie or setcookie not work - by El Forum - 07-22-2011, 07:30 AM
input->set_cookie or setcookie not work - by El Forum - 07-22-2011, 08:42 AM
input->set_cookie or setcookie not work - by El Forum - 07-22-2011, 02:44 PM
input->set_cookie or setcookie not work - by El Forum - 07-22-2011, 03:03 PM
input->set_cookie or setcookie not work - by El Forum - 07-22-2011, 03:42 PM
input->set_cookie or setcookie not work - by El Forum - 07-22-2011, 07:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB