Re: loggedIn, same session, thru several pages

From: Mohamad Fazli (fuzz_at_streamyx.com)
Date: 05/05/04


Date: Wed, 5 May 2004 18:49:21 +0800

Well..

I assume u talking about using Java Server Pages..

Well the easiest is to use the session variables
<%=session.getAttribute("myname")%>

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" <nothing@nothing.com> wrote in message
news:PyXlc.24708$wY.10539@nwrdny03.gnilink.net...
> 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
as
> simple as checking a cookie and setting a variable loggedIn=TRUE or are
> there more durable methods not prone to possible security problems? THANKS
>
>