• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Nakataa Kokuyo
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Often stored as a cookie.

I highly encourage you to look at a framework such as Apache Shiro or Spring Security to manage authentication.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic