Results 1 to 2 of 2

Thread: Page Refresh click button!!!

  1. #1

    Thread Starter
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Page Refresh click button!!!

    Hi
    I got a form with a usercontrol (Login Control) that I created on it.

    The control got a Login / Logout button on it, which, when clicked, call a function to log the user in or out.

    I could not understand why the user get logged out when I refresh the page (pressing F5).

    After some debugging, I realized then when the page are refreshed, the user control's login button click event get fired.

    Is there any way I can prevent this?
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Page Refresh click button!!!

    Prevent caching of the login page.

Posting Permissions

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



Click Here to Expand Forum to Full Width