Anson
I would suggest using session tracking to keep track of this state. Place the user in
your session and have a small function run in the head of your pages checking for
this. If no username is found then call, session.invalidate and redirect the user back
to the login screen.
HTH
Kind Re
esday, September 09, 2003 3:00 AM
Subject: method of implementing a 'login' section in a site
> hi,
>
> Thanks a lot for the email guys!! Another question I want to ask. I
> want to create a section of my site where I only allow users to use IF
> they have logged into
I don't get ityou mean you have to can set the cookie yourself??
-Original Message-
From: Billy Kantartzis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 8:41 PM
To: Tomcat Users List
Subject: Re: method of implementing a 'login' section in a site
The way
t; <[EMAIL PROTECTED]>
Date: Tuesday, September 9, 2003 12:04 pm
Subject: Re: method of implementing a 'login' section in a site
use the servlet specification way!!
ie, protect your pages with entries in web.xml
then tomcat will log in the users for you
Filip
- Or
The way i prefer to do it is use a simple db with the
user atributes (userid , password , etc), use cookies
to check if the user is logged in or not.
one thing i had problems with when i first implemented
this solution is that the cookies are stored in a
browser specific place and you might not be
haha thanks...but..how do you do that? =P
Anson
- Original Message -
From: "Filip Hanik" <[EMAIL PROTECTED]>
Date: Tuesday, September 9, 2003 12:04 pm
Subject: Re: method of implementing a 'login' section in a site
> use the servlet specification way!!
>
nday, September 08, 2003 7:00 PM
Subject: method of implementing a 'login' section in a site
hi,
Thanks a lot for the email guys!! Another question I want to ask. I
want to create a section of my site where I only allow users to use IF
they have logged into my site. Either than
hi,
Thanks a lot for the email guys!! Another question I want to ask. I
want to create a section of my site where I only allow users to use IF
they have logged into my site. Either than using cookies to keep track
if they have logged in or not, what method should I use to keep track
of th