Home Discussion 23855-Login Discuss: Login/Logout With Session

  • Problem facing on Logout functionalityChandan Prakash July 29, 2011 at 12:12 PM

    Dear sir, I am Chandan Prakash.I am applying logout fuctionality using struts1.1 but i am facing a problem whenever i click on the browser back button i come to the back page once again. I used the following lines of code to implement logout functionality: HttpSession session=request.getSession(false); session.removeAttribute("user"); session.removeAttribute("password"); session.invalidate(); return mapping.findForward("logoutSuccess"); Please help me to solve the problem that i am facing. Thanks.

  • plz rely meammu August 17, 2011 at 11:59 AM

    hi, i was worked on this coding.I got one error has The requested resource (There is no Action mapped for action name login.) is not available.Please reply me soon...i need this coding

  • using sessionMeheid Hasan June 9, 2013 at 11:10 AM

    it's obviously good but may more clear for initial developer

  • after logoutrushan November 16, 2011 at 6:41 PM

    when i have log out, then if i click the back button of the browser it goes to the previous page with the displaying the content. how can i avoid that?

  • jar filesAnand December 27, 2011 at 4:57 PM

    Can u please send us jar files for above project

  • struts matirialMahesh December 28, 2011 at 6:21 PM

    roseindia is providing good info.

  • Struts developerMahesh December 28, 2011 at 6:27 PM

    i want struts example application with business logic can any one provide..

  • logout in struts2aditya June 9, 2012 at 8:58 PM

    If someone clicks the back button then the browser takes him to my login page even after logout..... there is option in javascript to disable the back button...bt if someone disables javascript then he can easily get into my login page again....so what should i do??? plz do reply....

  • javaprakash August 6, 2012 at 11:21 AM

    it is not running on my tomcat server.

  • Help Me...cherryHYD November 19, 2012 at 10:17 AM

    class A{ protected int i; } class B extends A{ } class C extends B{ } // how to initialize the A class variable in class C without creating the instance of A....

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
Java Interview Questions

session
session  is there any possibility to call one session from another session 

Java Interview Questions

session
session  is there any possibility to call one session from another session 

JSP Servlet Questions

Session
Session   how to session maintaining in servlet with use of hidden fieds 

PHP Questions

session
session  Session management in Java 

Servlet Interview Questions

Session
Session  How fined session is new or old 

PHP Questions

session
Session Management in PHP  Handling session in PHP. Can anyone please explain it with the help of an existing example about, how to handle a session while a user is logged in PHP 

JSP Interview Questions

Session
Session   How can we set the inactivity period on a per-session basis?   We can set the session time out programmatically by using the method setMaxInactiveInterval() of HttpSession 

JSP Servlet Questions

session
session   explain sessioln tracking in jsp and display program 

EJB Questions

session
session  Which methods can be invoked by the container on a stateless session bean 

Servlet Interview Questions

session
session  What mechanisms are used by a Servlet Container to maintain session information?   Servlet Container uses Cookies, URL rewriting, and HTTPS protocol information to maintain the session 

PHP Questions

Session
Session   hii, What Is a Session?   hello, Sessions are commonly used to store temporary data to allow multiple PHP pages to offer a complete functional transaction for the same visitor 

Java Beginners

session
session  how can transfer data of one page to another page using session in java swing 

PHP Questions

Session
Session  What Is a Session?   Hi friends, A session... subsequent HTTP requests. There is only one session object available to your PHP scripts at any time. Data saved to the session by a script can be retrieved 

Servlet Interview Questions

Session
;A servlet session is created and stored on the server side. The servlet container keeps.... To the maintain the session, Web clients must pass back a valid session.... In this sense, the session is also stored by the client, but only as a token reference 

PHP Questions

session
session  create multiple login on one page in php but how to use session 

Servlet Interview Questions

Session
Session   why do we need session? actually what stored in a session... and user would not able to retrieve the information. So, Session provides that facility to store information on server memory. 2)Variables are stored in session 

JSP Servlet Questions

session
session  how to implement login-logout session????   Please visit the following links: http://www.roseindia.net/quickguide/tomcat/Logout.shtml http://www.roseindia.net/jsp/javascriptpagerefresh.shtml http 

Java Server Faces Questions

session hanling
session hanling  session handling in facelets/jsf 

PHP Questions

Session in Php
Session in Php   What Is a Session 

Java Beginners

session Maintainess
session Maintainess  how to maintain session in struts 2 

JSP Servlet Questions

Session management
Session management  How To Maintain Session in jsp for Online exam project 

Java Beginners

session handling
session handling  how we can handle session in core java 

PHP Questions

php session
php session  what is session 

Java Server Faces Questions

Terminate the session
Terminate the session  How to terminate the session 

JSP Servlet Questions

Session control
Session control  Could we make session control in JSP language without having any help of other framework 

JSP Servlet Questions

session invalidate.
session invalidate.  how to invalidate session? i am calling session.invalidate()but not working 

Servlet Interview Questions

session tracking
session tracking  What are the common mechanisms used for session tracking?    Cookies SSL sessions URL- rewriting 

Java Interview Questions

session tracking
session tracking  session tracking is of four type. 1.hidden form field 2.url rewriting 3.http session interface 4.cookies. please explan the third type with example 

JSP Servlet Questions

Session Mamangemnt
Session Mamangemnt  Hi all.. I want invalidate the the session for an element in an array .. for EX: a[0] has to invalidate rest a[1],a[2]... has to be in session .. please help me out urgent 

JSP Servlet Questions

Session Mamangemnt
Session Mamangemnt  Hi all.. I want invalidate the the session for an element in an array .. for EX: a[0] has to invalidate rest a[1],a[2]... has to be in session .. please help me out urgent 

DMCA.com