Welcome Guest, Not a member yet? Register   Sign In
COOKIE PROBLEM
#1

[eluser]Paulodemoc[/eluser]
Hello everybody.

I am trying to set a cookie on user login, I call it ccmdata, with expiration of 2 hours.
But for some reason it isn't working.
I tried to do var_dump to see the return. If I use set_cookie, it is returning NULL
but if I use setcookie (native PHP function), it returns TRUE.
But no matter how long I navigate or refresh the page, the cookie isn't created...
I use developer tools on firefox to see the cookies.
The CI cookie is being created normally. Even some other cookies of the auth class are being created (like remember_me), but this one isn't.

Anyone here might know what is going on?

.-.


Messages In This Thread
COOKIE PROBLEM - by El Forum - 10-08-2010, 08:13 AM
COOKIE PROBLEM - by El Forum - 10-08-2010, 09:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB