CakePHP reading Cookie with multiple dots -
I am using CakePHP to develop a website and I am currently struggling with cookies. The problem is that when I type cookies with several points, like
$ this-> cookie-> gt; Write ("Figure 1.", $ Fitz ID); $ This- & gt; Cookie- & gt; Write ("Figure 1.", $ figure name); And then read, KHHP does not return nested arrays, but it returns,
array ('1.id' => gt; '82', '1.name' = & gt; '1') I have some expectations array ((int) 1 => array ('id' = & gt; ; '82 ',' name '= & gt;' 1 '))
Actually I did not see the results for the first time when I read them after writing. But for the second time, the result was the same. Do you know what's going on?
I am afraid that many points are supported if you read the CookieComponent () ) If you look at the method, you can see it:
277: if (strokes ($ key, '.')! == incorrect) {278: $ name = explosion (' . ', $ Key, 2); 279: $ key = $ name [0]; 280:} and the blast () method is being asked to blast your cookie name in maximum of two parts.
It may be that before you save the best data that you want to store before saving and deserializing after reading it is shown here:
Comments
Post a Comment