php - Cookies is not setting -


i setting cookie not being set when var_dump() variable trying set in cookies shows

string(4461) "[" string  "]"; 

does mean size of string bigger capacity of cookie.

my php code looks

setookie('corredores',json_encode(array_unique($corredores))) ; 

so when print cookie return null.

hash string , set coocies. or serialize array.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -