Forums Register Login

Need help writing LoginCheck.jsp page

+Pie Number of slices to send: Send
I am trying to write a LoginCheck.jsp page so that when someone visits any page on my site, it will check this jsp script thru a <jsp:include... to see if the session value "isValid" is set to true, if so, it will let them continue, if not, it directs them to "login.jsp"

But im having troubles writing this script in JSP.

Can someone look at it and let me know what I'm doing wrong?

Thanks,
Sean







[ March 14, 2005: Message edited by: Sean Gildea ]
[ March 14, 2005: Message edited by: Sean Gildea ]
+Pie Number of slices to send: Send
If this is a new session, your isAuthenticated object will be null.

try:


The second half will never be evaluated and probably isn't necessary.
[ March 14, 2005: Message edited by: Ben Souther ]
I am Arthur, King of the Britons. And this is a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1648 times.
Similar Threads
javascript called within JSP
using submit button in jsp to set a boolean value
Session variables in Netscape 4.76?
code for logout from jsp page
Session-based authentication
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 00:20:35.