hi
u put all the session authentication logic in one file and include that file
in every file where u want to check the authentication.  This would be much
better, since any change required may be simply changed in one page
Hope this helps
--Raghu
----- Original Message -----
From: Deepak C S <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 16, 2001 1:37 PM
Subject: please Help --session check


> hi people,
>
>         As a part of authentication check, I am checking for a session
> attribute to validate user login across pages.
> eg:
>
> if (session.getAttr("user")==null){
> sendRedirect(loginpage);
> }
>
> But now, I am keeping these lines in all my jsp files(cut and paste)..If I
> have to change somethg with that I need to change in all jsp pages..
>
> Is there any better way than this?? like keeping session -checking code in
> seperate file and including in all pages??
>
> pls help.
>
> Thanx in adv,
> Deeps
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to