What is Session Object?

It stores information about a User’s session. Gives a notification when a user session begins or ends.

Showing Answers 1 - 8 of 8 Answers

Ramesh. S

  • Oct 4th, 2005
 

Session is a variable,is used to store current user information.it will expired when the browser is closed OR the default session expired time is 20 minutes.

  Was this answer useful?  Yes

anand

  • Dec 29th, 2005
 

 

Session is a variable,is used to store current user information.it will expired when the browser is closed OR the default session expired time is 30 minutes.

  Was this answer useful?  Yes

Rajkumar

  • Nov 8th, 2006
 

By using session object we can maintaing the state of the data which is helpful for maintaining the session(i.e to keep track of the information of the same client during the consecutive visits of the application)we can obtain the session object by using the following code:HttpSession sn=request.getSession();we can store the attributes in session object by usingsession.setAttribute(String sn,Object value);we can obtain the attributes by usingsession.getAttribute(String name);

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions