ASP.NET session object lifetime pessimistic assumption !

jack187

New Member
I check a \[code\]session\[/code\] object and if it does exist then call another method which would use that object indirectly. Although the second method would access this object in a few nanoseconds I was thinking of a situation when the object exactly expires between two calls. Does \[code\]Session\[/code\] object extends its lifetime on every read access from code for preventing such a problem ? If not how to solve the problem ?If you are going to say why I don't pass the retrieved object from first method to second one, this is because I pass the ASP.NET \[code\]Page\[/code\] object which carries many other parameters inside it to second method and if I try to pass each of them separately, there would be many parameters while I just pass one \[code\]Page\[/code\] object now.
 
Back
Top