This guide should eliminate all the vague problems you would otherwise encounter when trying to clone your magento environment.
There are a gazillion guides on how to do this.
Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
and comment out these lines
if (!$cookieParams['httponly']) {
unset($cookieParams['httponly']);
if (!$cookieParams['secure']) {
unset($cookieParams['secure']);
if (!$cookieParams['domain']) {
unset($cookieParams['domain']);
}
}
}
if (isset($cookieParams['domain'])) {
$cookieParams['domain'] = $cookie->getDomain();
}
You’ll find these lines between line 80-120. This prevents cookie related problems for admin login