如何在php webservice和android之间创建cookie?

时间:2013-10-29 07:05:09

标签: php android cookies

我打算在php webservice和android之间创建cookie。我已经在php上创建了cookie,这里是代码:

$name = 'namenamaname';
$password = 'passwordrahasia';
$latitude = -7.952551000;
$longitude = 112.614443000;

$seal_cookie = "$name, $password, $latitude, $longitude";
$seal_cookies = base64_encode(serialize($seal_cookie));

setcookie ("SealCookie", $seal_cookies, time()+60);
问题是,如何将cookie发送到android客户端?我是否还必须在客户端添加一些代码?或者我是否必须创建客户端cookie?

0 个答案:

没有答案