Hello Every One
I am developing many website,and all has the same problem on user login part.
the problem is that if user not logged even and direct copy the admin homepage
path in address bar the admin home page opens.I want to prompet this by coding.I have tried to check session on admin home page.
[ String id=(String)session.getAttribute("id");
What is the value of id?
Sir When User view the admin page without login .then i want to rediret to the login page.
The overall moto is no one can view admin page without login.
I set the id in the session.
You didn't answer my last question?
What is the id when it hits that bit of code you posted?
That is, what is the value of id when you go directly to the admin page?