Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void protected OnLogin()
- {
- if(UserIsAuthenticated)
- {
- Session["English"] = true;
- }
- }
- void Application_BeginRequest(object sender, EventArgs e)
- {
- if(Request.PhysicalPath.Contains("English")
- {
- if(!((bool)Session["English"]))
- //Not "English" user - redirect to login or unauthorized page
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement