You are here: Cookies.. Serialize/Unserialize.. « PHP Programming Language « IT news, forums, messages
Cookies.. Serialize/Unserialize..

Posted by onefastmustang on 09/26/04 11:29

I have a cookie that I serialize and set as follows..

$searchdata[state] = $state;
$searchdata[country] = $country;
$searchdata[radius] = $radius;
$searchdata[radius_zip] = $radius_zip;
if ($_GET[roles]){
foreach ($_GET[roles] as $value){
$searchdata[r. $value] = 1;
}
}

setcookie("searchdata", serialize($searchdata), time()+3600,
'/',"somedomain.com")

Whats the best method to unserialize and make it all usable data
again?? I tried various methods but I can't seem to access the data.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация