Welcome Guest, Not a member yet? Register   Sign In
I have problem with set cookie in codeigniter
#3

[eluser]Narf[/eluser]
... and it's not PHP's problem either. Thats simply how cookies work:

Step 1: HTTP Client <request> HTTP Server
Step 2: HTTP Server <response> HTTP Client

This happens every time you visit a web page. When you call setcookie(), the cookie is sent in Step 2 as a part from the server's response. However, a cookie must be sent by the client (your browser) in Step 1, so that it's data can be available to the server, which happens on your next page load.


Messages In This Thread
I have problem with set cookie in codeigniter - by El Forum - 10-15-2012, 12:12 AM
I have problem with set cookie in codeigniter - by El Forum - 10-15-2012, 02:31 PM
I have problem with set cookie in codeigniter - by El Forum - 10-17-2012, 08:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB