I set cookies like this:
//Some where in my code...
$cookieUsername = 'myCookieUid';
$cookiePassword = 'myCookiePwd';
if( isset($POST['uid']) && isset($POST['pwd']) )
{
$username = $POST['uid'];
$password = $POST['pwd'];
setcookie($cookieUsername, $username, time()+30240000,"/");
setcookie($cookiePassword, $password, time()+30240000,"/");
}
But my cookie file in client shows only last item (password), and next time I check that cookie in server site, there is only last one present.
So where's the catch?
Apache 2.0.36 & PHP 4.2.1 (build as .so module).