Logged out while trying to run upgrade.php

after login in admin account and if i try to call upgrade.php, i am getting logged out and an error message says u must logged in to view this page.

Also no system message pops during logged out conditions. like if wrong password entered, after registration etc.

please help