Hello Ranchers!!
I'm using
jsp and oracle for doing my project.. So when i got logged in.. i used to put the user name and password in the session..
for egs :
1)main page is index.jsp..
2)main_menu_page.jsp
and the url for the following pages are
http://localhost:8080/test --> for index.jsp
and
http://localhost:8080/test/main_menu_page.jsp so when ever the users put the correct username and password..
then only they are able to see the main_menu_page.jsp
so i want to verify the session when the page is loading..
how to verify the session!! when the page is loading
ie., if a user comming and typing the url as
http://localhost:8080/test/main_menu_page.jsp and then pressing enter.. he has to redirect to the login page or index.jsp!!
so for that i want to check for the sessions first in all pages..
can u help me.. how to search for the session!!
if u can provide me code.. that is also ok!!
thanks in advance.
regards!!
Aravind Pasad..