Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Thanked 0 Times in 0 Posts

    AJAX Login - Session Problem

    I have created a working login script using AJAX and PHP, but my problem is - it makes me login twice before it can remember a session. Initially it uses js response to update the page contents (as logged user) but if I refresh the page, everything turns back to its previous state (login form appears again). When I log-in for the second time and refresh the page, it's the only time it will work. Does anybody know why is this happening?

    You can check my files here:

    1. login.php -

    2. users.php -

    Fixed. (My stupid mistake)
    Last edited by blackstrider; 06-19-2011 at 06:25 PM. Reason: Fixed.


Posting Permissions

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