<%@ Import Namespace="System.Web.Security " %> <%@ Import Namespace="UMEDIASERVERLib" %> <%@ Import Namespace="System.Web.SessionState" %> <html> <script language="C#" runat=server> void Login_Click(Object sender, EventArgs E) { if ((AccountName.Value == "video") && (UserPass.Value == "pass") || (AccountName.Value == "user") && (UserPass.Value == "video") || (AccountName.Value == "guest") && (UserPass.Value == "guest")) { Msg.Text = Session.SessionID.ToString() + AccountName.Value ; UMEDIASERVERLib.ExternalSession MediaServerSessionMngr = new UMEDIASERVERLib.ExternalSession(); MediaServerSessionMngr.AddSession(Session.SessionID.ToString(), AccountName.Value); FormsAuthentication.RedirectFromLoginPage(AccountName.Value,false); } else { Msg.Text = "Invalid Credentials: Please try again"; } } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)