For you what is the best way to do that?
I would like that all the pages of my app have timeout of 20 minutes but 4. I would like these 4 pages have 60 minutes timeout..
What is the best way?Have I to set the Session.timeout in the constructor of the pages? Is there any other way?
Thanks
You could create a custom base page (that inherits from System.Web.UI.Page), set the session timeout in the Page_Init handler, and then set those four pages to inherit from your custom base page. That gives you one place to manage the session timeout value.