protected void Page_Load(object sender, EventArgs e)
{
// Manage the case when the application is for some reason restarted
// during the editing of a Page or File
if(Request["Page"] != null) {
PageInfo page = Pages.FindPage(Request["Page"]);
if(page == null) return;
else {
// The system already authenticates the user, if any, at the request level
string username = Request.UserHostAddress;
if(SessionFacade.LoginKey != null) username = SessionFacade.CurrentUsername;
Collisions.RenewEditingSession(page, username);
}
}
}