I am currently in development of an ASP.NET Web Forms site. I have a good size database associated with the site, about 85 tables, and I use LINQ to SQL to communicate with the db. On Session End event, close of browser, etc. I would like to log the user out. To my understanding, I have to do this in the Global.asax file, correct? Can I use LINQ to SQL in that file? If so, can some post some code of what all this would look like? Thanks guy!
Why Associative Array Creation Has "=>" And Numerical Array Not ?
uniqueideaman - May 21 2017 04:25 AM
How create Login System Using Hardware ID IN .NET C#?
rshirsagar55 - May 15 2017 04:02 AM
How Come Variable Not Assigned And Php Knows Where To Look For Value ?
uniqueideaman - May 06 2017 04:21 AM
Magic Constants Case Sensitive or case In-sensitive ?
uniqueideaman - Apr 27 2017 05:58 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Posted 03 June 2015 - 07:13 AM
Yes, you should use the Global.asax for the session end. No, you should never call database actions inside that method. What you could do is call a self contained method in the business or database layer to handle the action you want, and to handle any exceptions there.
"Women and Music: I'm always amazed by other people's choices." - David Lee Roth