简体   繁体   中英

How to get timeout to redirect to a specific page (using Web.config)

I am trying to get my website to redirect to a specific page on timeout.

I currently have the timeout working which looks like:

<sessionState timeout="1">
</sessionState>

inside of my config. However, I can't figure out how to get it to redirect to a specific page after the timeout.

I don't know if I can do it within the config folder, or should it be part of the html?

Any help much appreciated!

I believe this is what you are after: Redirect Page After Session Time Out in ASP.Net

I know it is not STRICTLY just web.config, but it is the best answer I could come up with.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM