base page session time out
I'd like to imple开发者_JS百科ment a function that checks to see if the session is expired. Is a base page the right place to put this into? Also, can I put a page method in a base page?
Thanks.
You could do it this way, but it seems to me that wiring an event handler to the HttpApplication.PostAcquireRequestState
event is a more logical place. This also makes your code work even if you forget to derive from your custom base page.
Absolutely. It is very advantageous to keep things DRY by using inheritance.
精彩评论