Re: loggedIn, same session, thru several pages
From: Mohamad Fazli (fuzz_at_streamyx.com)
Date: Wed, 5 May 2004 18:49:21 +0800
I assume u talking about using Java Server Pages..
Well the easiest is to use the session variables
Just google off for session.setAttribute or session.getAttribute.. should be
good enuff to help you.
Few things to to consider, session will last typically across the same
thread of the explorer, i,e. if you press Ctrl-N, most likely the session
will carry across the new window...
In order to reset the session... use session.invalidate
"D E" <firstname.lastname@example.org> wrote in message
> What are some good methods of letting a user's "identity" (?session?) be
> known across several webpages. For example, a user logs in, and several
> pages say "Welcome back KNOWN USER" if he successfully logged in... Is it
> simple as checking a cookie and setting a variable loggedIn=TRUE or are
> there more durable methods not prone to possible security problems? THANKS