curl로 다음 자동로그인 가능하다.
$loginUrl = 'https://logins.daum.net/Mail-bin/login.cgi?dummy=1238466344458';
$login_data = 'enpw=비밀번호&id=아이디&pw=비밀번호&url=http://www.daum.net&webmsg=-1';
$cookie_nm = "./cookie.txt";
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL,$loginUrl); //접속할 URL 주소
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_SSLVERSION,1);
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_nm);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_nm);
curl_setopt($ch, CURLOPT_POSTFIELDS, $login_data);
curl_setopt ($ch, CURLOPT_TIMEOUT, 30);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec ($ch);
curl_setopt ($ch, CURLOPT_URL,"http://www.daum.net/"); //접속할 URL 주소
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_nm);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_nm);
$result = curl_exec ($ch);
curl_close ($ch);
echo $result;