Thread: Session issue

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    7
    Rep Power
    0

    Session issue


    hello everyone,
    well it's my first time creating a website and especially a login system.What I haven't been yet able to understand is the exact use of session.for example I have a Landing page where the user can login.The login procedure is handled by a php script.
    Where exactly do I put the session_start command and how is the user remembered when he wants to go to his very own profile page?
    thanks in advance
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2003
    Posts
    3,601
    Rep Power
    595
    Session start goes at the very beginning of your PHP code. Not sure what you mean with your second question. How a user gets his/her own profile is dependent on how you program it. Generally this is associated with a database based on username. You are not planning to do this with just session variables and not a database are you?
    There are 10 kinds of people in the world. Those that understand binary and those that don't.

IMN logo majestic logo threadwatch logo seochat tools logo