Results 1 to 6 of 6

Thread: SessionDestroyed in Java

  1. #1
    Join Date
    Nov 2009
    Posts
    117

    SessionDestroyed in Java

    Hello, I wanted to know the details about the method as SessionDestroyed from java programming language. I have checked it on internet, but I am not able to understand it exactly. I don't able to get the more details about it, if anyone from you is having more details about it, then please provide that to me.

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: SessionDestroyed in Java

    Hey, I am also searching for the same problem. I want to find out the values of the session.getAttribute("STR"), but when I try to get it, it provide me as a null after execution of the SessionDestroyed method. If I make use of the code below then it will provide me output:

    Code:
    System.out.println("The String is: " + session.getAttribute("STR"))

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: SessionDestroyed in Java

    Hello, I am not having more knowledge about the SessionDestroyed() method in java. But, I am having small understanding about it. If you make use of the sessionDestroyed() method in your program then it will be called if you specify the session timeout. And the calling of this method is done when the session is destroyed. The invocation of this method is done by the web container. If the method invalidate is get called then also it will follow the execution. This invalidate() method will unbind the object which is associated with the servlet. But, it will destroy the session when it will called explicitly.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    Re: SessionDestroyed in Java

    Hello, I am not having any knowledge about the SessionDestroyed in Java. But, I have got the code below, which can help you to get the knowledge of use of it.
    Code:
    @Override
    public void sessioneventssionDestroyed(HttpSessionEvent sessionevent) 
    {
    UsessioneventrSession usessioneventrsession = (UsessioneventrSession) sessionevent.getSession().getAttribute(org.kuali.RiceConstants.USER_SESSION_KEY);
    GlobalVariables.sessioneventtUsessioneventrSession(usessioneventrsession);
    super.sessioneventssionDestroyed(sessionevent);
    }

  5. #5
    Join Date
    May 2008
    Posts
    2,012

    Re: SessionDestroyed in Java

    Hey, I think the code below will provide you details about the sessionDestroyed() method in java:
    Code:
    public void sessionCreated(HttpSessionEvent args[0]) 
    {  
    System.out.print("Creation of Session is Successful");
    }
    public void sessionDestroyed(HttpSessionEvent args[0]) 
    {
    System.out.print("Session is destroyed");
    }

  6. #6
    Join Date
    Apr 2008
    Posts
    1,948

    Re: SessionDestroyed in Java

    Hello, If you make use of the books for getting knowledge about the java then it will more helpful to you. So, just make use of the books below:
    • JavaBeans: Developing Component Software in Java
    • Java Secrets
    • Java Network Programming
    • The Java Developer's Resource

Similar Threads

  1. Replies: 4
    Last Post: 04-09-2013, 11:04 PM
  2. Comparison between core java and advanced java
    By Prashobh Mallu in forum Software Development
    Replies: 5
    Last Post: 19-01-2010, 10:57 AM
  3. How big is an Object in Java? Why Java neglects sizeof?
    By KALINDA in forum Software Development
    Replies: 4
    Last Post: 10-11-2009, 03:19 AM
  4. Link List Example in Java Sample program in Java
    By trickson in forum Software Development
    Replies: 2
    Last Post: 04-08-2009, 08:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,811,542.20907 seconds with 16 queries