Results 1 to 2 of 2

Thread: php login

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    php login

    ok guys i need some expert help here, currently im using sessions for my login

    once a user logs in i create a session

    $_SESSION['username'] = $Username;

    and then on other pages i use stuff like

    if (isset($_SESSION['username'])) {
    //allow acess..
    }

    but is there a better way? because when i log in and go 'back' to previous page it says 'info lost' you must refresh etc. isnt there a way i can go back smoothly?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: php login

    You can't log in and go back, have you tried that on any other website? It just doesn't work.

    Also, that's why there is usually a confirmation screen with a redirect to another page - so you can't go back accidentally and repost the form.

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