using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; public partial class Lec12_Sessions_and_Cookies_RestictedContent : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // Not logged in yet if (Session["LoggedIn"] == null) { // Send them back to the login page Response.Redirect("~/Lec12 Sessions and Cookies/UsingSessions.aspx"); } welcomeLabel.Text = "Hi " + Session["LoggedIn"]; } }