Just to verify: It’s a general caching problem.
If you set
define('WP_CACHE', true);
in your wp-config.php, version 2.5.0/2.5.2 is likely to return -1 after sending the login request. Without caching it works fine.
Version 2.4 works with and without caching.
I hope it helps for solving the issue.
Best regards