To resolve this bug please follow following steps :
- Login to your magento administration
- Go to System >> Configuration >> General >> Web >> Session Cookie Management >> Cookie Lifetime
- Increase your cookie life time
- Refresh cache
Now this bug will be resolved.