Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set session and get session details jsp  RSS feed

 
Manas Saxena
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on making a social networking site where user can like a post and i want to store name of the person who likes the post.
So,i thought that on login i should set the session and then if that user likes some post then i could store his details (particularly name)of the person in my database.

The problem is how i am new to sessions.
How do i set a session?And later how do i retrieve name (which of course i have in my database) of the person in session.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Learning how to use the session is an important part of building web applications, but you need to find a tutorial describing it. Forum posts are not substitutes for tutorials.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!