Themelia Pro A powerful new development platform built on ASP.NET.
 
Understanding Session Application Processors
 
 

Session application processors run when a user session begins and when a user session ends. These events map to the OnStartup and OnShutdown methods, respectively.

These are created by building a class that inherits from the Themelia.Web.SessionApplicationProcessorBase abstract class. Below is an example:

namespace Sample.Web
{
    public class SessionApplicationProcessor : Themelia.Web.SessionApplicationProcessorBase
    {
        //- @OnStartup -//
        public override void OnStartup()
        {
            //+ setup user session here
        }
 
        //- @OnShutdown -//
        public override void OnShutdown()
        {
            //+ perform optional shutdown
        }
    }
}