Few times when you restart the server it takes longer time to login because it goes through all the required authentication/authorization process for specific user but if its really taking too much time or even you are not able to login then i would suggest couple of points.
1. Try accessing http://<host>:<port>/system/console (this will be up first because its container for all the components) using admin username/password if it success means user is setup correctly (assuming you have similar issue with all users)
2. Now again try to login to cq and check error.log for anything silly going on in background. If nothing found there
3. then in felix console http://<host>:<port>/system/console just go to "repository check" tab to run the report on your cq system health to check is there any incosistency.
Let me know if you see anything.
Logs should indicates what is happening. Since you say it is hanged. Take a thread dump & verify what is happening.
Thnaks for your suggestion.Let me implement and i will let you know if i succeed.
I tried the procedure sent by you still it was hanging.
When i gave the credentials (for ex:user:admin,Password:admin) it is hanging.I could not able to login.
Can you check this out.