Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: how to use sessions

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post how to use sessions

    hello, i have a question.. suppose a user logged in... after some time he want to get back to homepage...okk but suppose i want to get back to previous page by clicking back button on browser...but i dont want to go to login page until and unless i invalidate session...so wat settings i have to do on browser...so that i dont redirect to login page directly...


  2. #2
    Junior Member
    Join Date
    Apr 2014
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post disable back button when user logout and send message as plz login again

    Hi,

    I have a website which requires login. After I enter username and password and click login button, a new page is loaded. In that page I have a username in the right up corner. When the user clicks logout button, Session.Clear() method is called and also Response.Redirect(" to login page "). It works OK, but the problem appears when I then click Back button in the browser. It gets me back to previous page with the username in the right up corner. Insted, I would like to show message asking user to enter password again so he can login properly.

    If anyone knows how...

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: how to use sessions

    Please don't post duplicate topics.

    Since you have no code, What's Wrong With My Code? is probably not the best place for this thread. If you'll give more details about what technology you're using, JSP/Servlets, a Web Framework, JavaScript, etc., we can locate the code appropriately.

Similar Threads

  1. Question about sessions
    By despodov in forum Java Servlet
    Replies: 2
    Last Post: October 25th, 2011, 08:11 AM
  2. mantaining sessions in WebApp
    By arvindbis in forum Java Servlet
    Replies: 0
    Last Post: August 25th, 2011, 12:58 PM
  3. Replies: 1
    Last Post: May 20th, 2011, 03:58 AM