开发者

base page session time out

开发者 https://www.devze.com 2023-02-18 04:13 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消