Managing session
-
Hi, I'm using session variable in my project, which is been used in each and every page. but right now i'm checking session in every page before using it's value. Is there any other way to manage session. so that i need not to check session in every page? Waiting for your valuable response. Thanks Krishna veer singh
krishna veer singh
-
Hi, I'm using session variable in my project, which is been used in each and every page. but right now i'm checking session in every page before using it's value. Is there any other way to manage session. so that i need not to check session in every page? Waiting for your valuable response. Thanks Krishna veer singh
krishna veer singh
once u give a value to session variable, it will remain d same, until the session expires or u modify that variable...so why u need to check that in every page...
-
Hi, I'm using session variable in my project, which is been used in each and every page. but right now i'm checking session in every page before using it's value. Is there any other way to manage session. so that i need not to check session in every page? Waiting for your valuable response. Thanks Krishna veer singh
krishna veer singh
krishnaveer wrote:
Is there any other way to manage session. so that i need not to check session in every page?
There are ways, but simple way is this only.Whenever a pageload occurs have some common function that is called to check, whether session is alive or not ,accordingly take further actions. For more details Have a look
Cheers!! Brij Check my latest Article :Exploring ASP.NET Validators
-
once u give a value to session variable, it will remain d same, until the session expires or u modify that variable...so why u need to check that in every page...
sriharsha_12 wrote:
until the session expires or u modify that variable
sriharsha_12 wrote:
so why u need to check that in every page
Because it could have expired or been changed :doh:
I know the language. I've read a book. - _Madmatt