In
SDL Tridion 2013 SP1, an event handler is used to create admin sessions to do certain tasks. For example:
namespace TestEventSession
{
[TcmExtension("MyEventHandlerExtension")]
public class MyEventHandler : TcmExtension
{
Session myAdminSession = new Session("NT AUTHORITY\\SYSTEM");
public MyEventHandler()
{
Subscribe();
}
public void Subscribe()
{
EventSystem.SubscribeAsync<Page, SaveEventArgs>(HandlerForInitiatedPage, EventPhases.Initiated);
EventSystem.Subscribe<Component, SaveEventArgs>(HandlerForInitiated, EventPhases.Initiated);
}
But the above will not properly initialize in
SDL Web 8.5 and may also prevent the
Content Manager Explorer from loading.