Results 1 to 5 of 5

Thread: Logout problem

  1. #1
    anki1234 is offline Member
    Join Date
    Dec 2007
    Posts
    28
    Rep Power
    0

    Default Logout problem

    :confused: I hav a problem in logging out.When i do so it redirects me to the login page but the problem is that it shows username as well as password on the login page. "I dont want to reflect password ".My code for logout is as follows:
    <strong><a
    href="http://localhost:8080/Core/jsp/login.jsp?logout="
    true"style="color: rgb(0,0,255)"><small><font
    face="Arial">Logout</font>
    </small>
    </a>
    </strong>
    Thanks
    anki1234

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    that was not logout code .. it is just a hyperlink code, post your login.jsp page fragments i can help you with that..
    dont worry newbie, we got you covered.

  3. #3
    anki1234 is offline Member
    Join Date
    Dec 2007
    Posts
    28
    Rep Power
    0

    Default

    thanks
    i have done it with session.invalidate by creating logout.jsp separately

  4. #4
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    No problem .. plus to that the link in above code gives

    http://localhost:8080/Core/jsp/login.jsp?logout=
    instead of
    http://localhost:8080/Core/jsp/login.jsp?logout="true"
    dont worry newbie, we got you covered.

  5. #5
    anki1234 is offline Member
    Join Date
    Dec 2007
    Posts
    28
    Rep Power
    0

Similar Threads

  1. [SOLVED] logout user when session expires
    By sanjeevtarar in forum Java Servlet
    Replies: 12
    Last Post: 02-23-2010, 12:53 PM
  2. Need to return to login page once logout
    By peiceonly in forum Suggestions & Feedback
    Replies: 2
    Last Post: 03-31-2009, 07:50 PM
  3. logout using java script
    By pankajagar2001 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 01-03-2008, 06:37 AM
  4. Sessions and logout question
    By orchid in forum Web Frameworks
    Replies: 1
    Last Post: 05-18-2007, 06:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •