0

I'm creating a website using JSP, HTML pages and MS SQL.
Can u please tell me how to create a session and how to retrive it each time while checking user status i.e how to check if user is signed in or not?

Please help.
Thank you.

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by ~s.o.s~
0

AFAIK, a session object is automatically created as soon as a request to a resource is made. In the Servlet API, you can get hold of the session object using request.getSession(), which grabs hold of the session for the current request. The way the session is maintained i.e. either by using cookies of session identifiers is generally not a concern for the developer though the latter is a much better solution. This might prove to be a good read.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.