Click to See Complete Forum and Search --> : Interrupt XHTML for Login?


fatbob_51
05-02-2008, 01:44 PM
Hi!
I have a qucik but quite "advanced" question..
You see I have a XHTML part and a C# part for my web, and I need to restrict some of the parts of the site...cause its a login "page"...so if your not logged in I dont want people to be able to get to the restircted pages...so the thing is that I have a page which I want to restrict..its coded and done with HTML and C#...but I thought that maybe there is a way to tell the server to ignore the HTML part of the page if a user tries to "hack" in to the page..

for instance: (psedu code)
IF usertries to "hack"
THEN
dont show the HTML and just do a response.write that tells the user that the page is restricted.




I know....Im not best in the world of explaining stuffs, especially not when Im not even sure myself about how and what Im looking for...so if you dont understand a **** then please let me know and I will try to explain it better:)


Thanks in advance!

A1ien51
05-04-2008, 10:53 AM
not sure what is hard about it.

One way to attack it is

if( userSession is not valid)
redirect to login page

Eric