New to web development - how to handle sessions

P

pramodr

Hi group,

I am not that experienced in web development and planning to do a
sales application myself to add some professional value. I have heard
that servlets can track the sessions, but have very limited idea on
this. My question is what is the strategy adopted in web applications
mostly ? Also heard of the Login servlet - is this the one which
tracks the entire session and delegates user requests to other
servlets ?

Please guide me.

Thanks and regards
 
A

Arne Vajhøj

pramodr said:
I am not that experienced in web development and planning to do a
sales application myself to add some professional value. I have heard
that servlets can track the sessions, but have very limited idea on
this. My question is what is the strategy adopted in web applications
mostly ? Also heard of the Login servlet - is this the one which
tracks the entire session and delegates user requests to other
servlets ?

The servlet container manage the sessions.

It should be in any Java web app book.

Arne
 
A

Arne Vajhøj

pramodr said:
Also can anyone say how can I configure a timeout value for the
servlet session ?

Session timeout is also managed by the container.

Arne
 
L

Lew

The servlet container manage the sessions.

It should be in any Java web app book.

One good place is
<http://java.sun.com/javaee/5/docs/tutorial/doc/>
which is a bit thick reading at times, but still one of the most useful
educational sources I have found.

There is not really such a thing as "the" Login Servlet so much as such a
common need for it that it gets built in to the container, e.g., Tomcat or
JBoss or GlassFish, and also recreated at the application level over and over
in nearly the same form.

<http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top