• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session

 
Zeina Afif
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been working with JSP for few months now, but am not as familiar with Session and cookies. For a site I'm working on, I implemented session for login, security and storing user information.
One of my colleagues (a cfm dev) told me that sessions take up memory space from the server, and I might run into scalability issues if the site has over thousands of users.
Is that true?
And is it a good idea to use just sessions, or should I use cookies as well?
Would appreciate any kind of feedback.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sessions are implemented differently on different application servers. However, as long as your sessions are small (usually only a very few objects, perhaps <2K total size) they generally don't cause a problem.
Kyle
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many app servers give you different options on HOW the session information is stored (in memory, cache persisted to file, DB, external JVM). Check your app server's documentation for different options.
Also, look into how they handle versioning and fail-over. Do they support hot versioning? (meaning when you update your application, will users that are surfing your site lose all their session data? or will it be maintained?)
Hope that helps.
 
Zeina Afif
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your replies, I'll check that out.
Thanks again
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!