File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes What should we do about Login? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "What should we do about Login?" Watch "What should we do about Login?" New topic

What should we do about Login?

Mark Lau
Ranch Hand

Joined: Dec 15, 2001
Posts: 120
I am working on a web application.
What should I do after a userid and the password are verified according to the user database information?
Should I store the userid in a session object? This way, when a user orders something from my site, I can get the userid from the session object, and correctly bill him (instead of somebody else) in the database, right?
Otherwise, login or not, it does not make any difference. Right?
subject: What should we do about Login?
Similar Threads
storing values in session during authentication
Questions about session tracking
Need weblogic specific classes to get reference to HttpSession object
How to implement Session Tracking
Autologin ?