File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes What is the best way to keep user session id or authentication data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "What is the best way to keep user session id or authentication data" Watch "What is the best way to keep user session id or authentication data" New topic
Author

What is the best way to keep user session id or authentication data

Nakataa Kokuyo
Ranch Hand

Joined: Jul 24, 2011
Posts: 184
Good day,

May i know what is the best way to keep user session id to validate user login and usage is valid.

Cookie , session or any other else ?

Thank you !
Ken Blair
Ranch Hand

Joined: Jul 15, 2003
Posts: 1078
Often stored as a cookie.

I highly encourage you to look at a framework such as Apache Shiro or Spring Security to manage authentication.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the best way to keep user session id or authentication data
 
Similar Threads
session in Strut2
Session time is not reseting
Session cookies - can they be changed at the client side
Session Advice
Disabling a previous session in a web app