aspose 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
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: 189
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