You didn't Specify which kind of Authentication technique are you using.
But still using the following Code statement you can find the Return Url:
Request.Params["ReturnUrl"]
You can just write some code so that when time out Occurs you can Redirect the User to the Return Url Page using the Above Return Url