Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Forms -- Best Practice ?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00846422
Message ID:
00847698
Views:
44
Hi Paul,

There is a way to trap when a session timesout. In your Global.asax file, there is a Session_End event handler that allows you to provide code to run when your application explicitly closes the session or when the session times out.

>>>I guess the one main point behind using tables as opposed to using the session really comes down to this: needing the data to live beyond a session's lifetime in some sort of "raw" (and easily queried) form. Otherwise, the Session and/or Cache a better (performance) bet.
>>
>>If you need to cache beyond the session, could you use one mechanism during the session, like a state server, and then serialize to SQL or XML when the session ends to persist it beyond the session?
>>
>>BOb
>
>Sure, but it's not particularly easy to query serialized info. You've also got the problem of knowing "when" to serialize it. I don't think there are any triggers available when a session expires (are there? That would be kind of cool).
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform