Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Vijay Kumar
JSP Session Object
1 Answer(s)      4 years and 2 months ago
Posted in : JSP-Interview Questions


JSP Session Object?


Advertisement
View Answers

October 26, 2010 at 4:57 PM


Session Object denotes the data associated with a specific session of user. The class or the interface name of the object session is http.HttpSession. The object session is written as:

      Javax.servlet.http.httpsession.

The Session Object provides the connection or association between the client and the server. The main use of Session Objects is to maintain states when there are multiple page requests. The main feature of session object is to navigate between multiple pages in a application where variables are stored for the entire user session.

Methods of session Object:

  • getAttribute(String name)
  • getAttributeNames()
  • isNew()
  • getCreationTime()
  • getId()
  • invalidate()
  • getLastAccessedTime()
  • getMaxInactiveInterval
  • removeAttribute(String name)
  • setAttribute(String, object)


Related Tutorials/Questions & Answers:
JSP Session Object
JSP Session Object  JSP Session Object?   Session Object... or the interface name of the object session is http.HttpSession. The object session is written as: Javax.servlet.http.httpsession. The Session Object provides
get a session object - JSP-Servlet
get a session object  how to do in a table when i click on a radio button i should get the id value which is in the same row and store it in the session this is in jsp when in the servlet if i call a get session i have to get
Advertisements
JSP Implicit object "session"
JSP IMPLICIT  OBJECT "SESSION"In this Section , we will discuss about JSP implicit object "session" with an example. Session Object...; the server is provided by "session" object. The main use of 'session
Session Object
Session Object  Why do we require Session Object?  Hello.... The session object is used by the developers to store and retrieve user's..., java.lang.Object value)- for storing the an object in session. getAttribute
Session Object
Session Object   What is the Max amount of information that can be saved in a Session Object ?   There is no such limit on the amount of information that can be saved in a Session Object. The only limit is the Session
Track user's session using 'session' object in JSP
Track user's session using 'session' object in JSP This section is about tracking user identity across different JSP pages using 'session' object. Session Tracking : Session tracking is a mechanism that is used
session object
session object  how to make session from one servlet to another servlet for an integer variable.   Please visit the following link: http://www.roseindia.net/servlets/SessionAttributeListenerExample.shtml
Session Object from request
Session Object from request  Why are we getting session object from... relevant class. is there any reason for getting session object from request... to naming convention the session object should get from response object.i hope u
Accessing Session Object
a jsp page for viewing the session object, session context and session time...Accessing Session Object      ... resources like the session object, session context and the last accessed session
jsp - session - JSP-Servlet
JSP - Session  How to manage session in JSP
Preventing the creation of a Session in a Jsp Page
have been provided the implicit session object. In jsp the session...Preventing the creation of a Session in a Jsp Page... will control the request and response object. Declare the session as false in the page
how to get session object in simple java class??
how to get session object in simple java class??  i am fallowing... the value to GroupPojo.java and set this pojo object into session. sending control............................ is.................... now i need to get that session object (GroupPojo
session in jsp - Java Beginners
  Hi friend, session is implicit object in jsp. using session oject in jsp. first u set using following methods String name... let me know how to create a session in jsp. Session for jsp with two side
Session removing - JSP-Servlet
Session removing  Hi, I am destroying session by using session.invalidate() in JSP but I am not able to destroy it completely can anyone help me... has been in session using session. setAttribute() but at log off I am using
Session Timeour - JSP-Servlet
Session Timeour  Hi, How to create a session timeout page in JSP? Session timeout should happen after 15 mins of idle instance. Thanks ... the following link: http://www.roseindia.net/jsp/jsp-session-parameter
session concept - JSP-Servlet
session concept  Hello friends, How can we track unexpectedly closing a window when a jsp project running with session concept. And this tracking should update the log in status in data base
session in jsp
object in the JSP page. This example explains you how the session object invokes...session in jsp In this section you will learn about session in JSP. Here you will learn about how to use the HttpSession in JSP. session in JSP is defined
session tracking in jsp
session tracking in jsp  hi... i am creating 3 jsp pages ie. login.jsp,display.jsp,userinput.jsp.. i am able to pass the value from login.jsp to display.jsp using session set attribut ang get attribute.. but same ting
Session concept - JSP-Servlet
Session concept  Hai friends, I am doing a jsp project with session concept. If one person is not accessing his logged window for more than 10 minutes it gets automatically log out.Anybody explain me the reason
JSP Session Parameter rewrite
JSP Session Parameter rewrite   ... in jsp. JSP session provides methods like getCreationtime(), getLastAccessedTime... the session information. The getCreationTime() method of session object returns
JSp session time out
JSp session time out  Consider a case where we are working on a java... for it??   If you want to make session timeout programatically, you can use... the maximum time in seconds before a session becomes invalid. Its syntax
Session Problem in JSP - JSP-Servlet
Session Problem in JSP  I have developed a online feedback form in JSP platform. I have created normal session in JSP page. It is running in my... then the session is not working. I have not used EJB. Please tell me how can I track session
Clearing session in jsp
Clearing session in jsp  i have developed a web appilcation using jsp and when user try to logout, session is not clearing even though i have used session.invalidate() and session.removeAttribute("username
Disabling Session in JSP
Disabling Session in JSP  ...; In this tutorial you will learn how to disable session creation in the JSP pages. Disabling the session in some pages will improve the performance of your JSP
session maintainence - JSP-Servlet
session maintainence  if the logout link is clicked in the main page.... login application in jsp function validateForm(theForm...; } Login Application in JSP
How many cookie object we can store in a session? is there any limit?
How many cookie object we can store in a session? is there any limit?  How many cookie object we can store in a session? is there any limit
session - JSP-Servlet
redirect the session  how i can redirect the session in any child window
session - JSP-Servlet
session  How to manage session for a particular user ..using session management?  Answer:If you get id as a integer from mlid field then userid is set in your session.RegardsAmar  Answer:If you get id
session maintainence - JSP-Servlet
session maintainence  how to enable a link only if the form in previous page is clucked  please show me your code
Session Tracking JSP - JSP-Servlet
Session Tracking JSP  Respected sir/madam, I am R.Ragavendran.. I Immediately need a coding for session tracking in JSP. Actually when... information. http://www.roseindia.net/jsp/loginstatus.shtml Thanks
JSP Out Object
JSP Out Object  JSP Out Object?   out object denotes... of the object out is jsp.JspWriter. The out object "Javax.servlet.jsp.JspWriter". Methods of out Object: clear() clearBuffer() flush() isAutoFlush() getBufferSize
Advertisements
 

 

 

DMCA.com