Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2010
    Rep Power

    Question need help to create login machanism for web application

    I am making a web application in which login is must. I have made an html page in which i have made username and password fields and a submit button. I am using post method to send data to a servlet. On that servlet i am authenticating it and creating a session which get invalid after 30 seconds. But when i simply refresh the page, browser again ask for resend information and it get logged in again without entiring username and password again. I want it never happen but i am not getting any solution for this problem. Please tell me how can i solve this problem.

  2. #2
    makpandian's Avatar
    makpandian is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    You should have log out option that does invalidate session.
    (Living @ Virtual World)

  3. #3
    baloda is offline Member
    Join Date
    Nov 2010
    New Delhi
    Rep Power


    ur servlet invalidates automatically. it should be invalidated only when u logout.
    add that option(i.e. html button) to logout.

Similar Threads

  1. How to detect first time login to the web application
    By dmane in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 08-04-2010, 06:18 PM
  2. Login window before application startup
    By Gloomy in forum AWT / Swing
    Replies: 5
    Last Post: 07-19-2010, 09:22 PM
  3. How to create Cookie for login function
    By javanewbie in forum Advanced Java
    Replies: 0
    Last Post: 11-11-2008, 04:03 PM
  4. How to write the login application using cookies
    By lukky in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-19-2008, 06:06 PM
  5. Replies: 5
    Last Post: 08-16-2008, 04:33 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