Session Expiry Bug?

I am developing a new application using frappe. Default setting of Security > Session Expiry is 06:00 hours. However, this was not working. Session expiring after 5 minutes. Then I set it 00:30 hours. Still, session expiring in 5 minutes, not in 30 minutes.

Any advice from experts?