Hi!
I'm making a website using perl and javascripting. I have a login page and a mainpage that should load when the given login is validated. It works fine if I star with the login page and enter user name and password. But the problem is, that the mainpage loads even by directly typing its address in the address bar. How do I make sure that if this is attempted without loging in first, then the page should not load and redirect to the login page.
Pls help
Thanks
BG
I'm making a website using perl and javascripting. I have a login page and a mainpage that should load when the given login is validated. It works fine if I star with the login page and enter user name and password. But the problem is, that the mainpage loads even by directly typing its address in the address bar. How do I make sure that if this is attempted without loging in first, then the page should not load and redirect to the login page.
Pls help
Thanks
BG
Comment