File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Persistent session and HttpSession... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Persistent session and HttpSession..." Watch "Persistent session and HttpSession..." New topic

Persistent session and HttpSession...

achana chan
Ranch Hand

Joined: Jul 29, 2002
Posts: 277
I need a persistent session, such that after a user has logged in, he can do searches on our databases, but when the user logs out or closes the client browser, the "logged in" state expires ie he cannot do searches anymore until he logs in once again.
What I have got now:
apache2+mod_ssl collaborating with TC4, .htaccess is enabled on apache2.
applet, a2s communication, servlet to query the database.
Please point me in the right direction:
Before I dive in, is HttpSession, URL rewrite and cookies the things that I need to look into in order to implement my requirement ?
TIA :-)

humanum errare est.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I'm moving this to The Servlets Forum...

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Take a look at chapter 9 of Core Servlets by Marty Hall.
I agree. Here's the link:
subject: Persistent session and HttpSession...
It's not a secret anymore!