I'm using jdbc realm for user authentication.
I configured /app/* needs authentication in web.xml.
I configured proxypass on apache conf like;
/ss/ to http://localhost:8080/SinavSistemi-war/
So when I request http://www.sinavsistemi.com/ss/app/exam.xhtml forwards me to the login page. I login and redirect to home page. But when I request the exam.xhtml page, again I'm redirected to login page. But I was already logged in.
The strange thing is that it's not behaving like this on netbeans with run project on my local machine. When I request;
http://localhost:8080/SinavSistemi-war/app/exam.xhtml
I'm redirected to login page. When I log in once, it's not redirecting to login page for the next requests anymore until I log out.
Glassfish version is 3.1.2.
What is the problem?
Regards,
Serdar