I would like to auto-redirect to login page when session time outs.
In web.config file, i have the following code
I think you are getting "Response is not available in this context" because the user is not making a request to the server, and therefor you cannot provide it with a response. Try Server.Transfer instead.