This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I have a very simple login page that's not working as expected.
The idea is that if a user tries to access "premium content", he'll be redirected back to a login page. Currently, this page is just testing and not using any DB lookups:
This code "works" in that it does get the user name password and does the sendRedirect to index.jsp.
------
Then, back in index.jsp where the user got redirected after logging in, he should now be able to go to the premium content page, which has (test) verification code like this:
--------------------
The problem is that the code is always going back to the login page from the premium content page: the "loggedIn" session variable is not found.
These pages are separate JSP pages under a Tomcat Webapp.
What am I missing here?
Thanks in advance for any suggestions.
- Mike
[BPSouther: Added code tags] [ March 31, 2008: Message edited by: Ben Souther ]
Originally posted by Mike London: The problem is that the code is always going back to the login page from the premium content page: the "loggedIn" session variable is not found
It seems the session variable 'loggedIn' was not set in your previous page. I also would go with Ben's suggestion. Try doing it. :thumb: