I am trying to set session time out limit to 30 minutes in magento but it is not expiring in 30 minutes. I went to System->Configuration->Web->Session Cookie managem
I found out what I was missing.
I was setting the cookie life time for default configuration but it did not work.
But this also needs to set the time out in website and store configuration scope.
After setting the time for these scopes it worked.