How to avoid checking session!=null in each page load
how to avoid checking session!=null in each page load in asp.net
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Dec 4, 2013, 6:21 PM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Dec 4, 2013, 7:31 PM EST
hi,
you can create base page all you web page is inherit from this base page and base page is inherit from page
Please refer
http://www.dreamincode.net/forums/topic/45300-base-page-for-detecting-session-timeout-in-aspnetc%23/
http://codebetter.com/davidhayden/2005/03/14/asp-net-page-inheritance-base-page-classes-in-your-web-applications/
hope this will help you.