Hi Sriyansh
Thanks for reply.
To elaborate my second line, after application is idle for 20 min and end user try to access the application it redirects to home page since session username becomes null. I am trying to make it redirect to logout page.
But issue is when user logs in first time username is null and redirects to homepage.
I am not able to make difference for both flow as in both condition username is null.
Timeout is fine, it should be 20 min only default set on machine.config. Issue is for page redirecting.