I am currently working on magento version 1.3.2.4. When i login to admin, it looks like i have entered proper username and password because it doesn't show any error like "Invalid username or password". When i try with fake login I do get error. Even i am not getting any error it stays on the login page.
So, I had to go through code and comment out few lines after which I was able to login and access admin again.
The task was to remove a menu item from the admin menu. I tried to do it through roles permissions but it wasn't saving permission for few selected custom modules. So, I had to leave it as 'All' as i didn't wanted to waste time researching and fixing other custom modules.
I removed menu items from menu node in config.xml but it didn't work. Deleted cache folder, session folder nothing worked. After googling for a while I found people recommended to do it through javascript by adding display none to the item like this: