logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What Is a Session in PHP?


  • Correct Answer
  • A PHP Session persist the user information to be used later For example, user name, password, shopping item details The session is temporary and will be removed soon after the user has left the web site The session can be persisted for long term usage on databases like MySQL Each session is identified by a unique Id number for every visitor The first step to use PHP session is to start the session The starting session must precede the operations like HTML or the other The statement session_start() starts the PHP session and registers the user?s information on the server 


  • Technology problems


    Search Results


    • 1. How to set cookies in PHP?
    • Discuss
    • 2. Explain when to use GET or POST. Provide example for both the ways.
    • Discuss
    • 3. What type of inheritance that PHP supports? Provide an example.
    • Discuss
    • 4. Explain how to create random passwords.
    • Discuss
    • 5. Explain how to store the uploaded file to the final location.
    • Discuss
    • 6. How can we encrypt the username and password using PHP?
    • Discuss
    • 7. Explain the changing file permission and ownership using PHP's chmod() function.
    • Discuss
    • 8. Explain the working with directories using opendir(), readdirs(), closedir() along with examples.
    • Discuss
    • 9. What is the difference between using copy() and move() function in php file uploading?
    • Discuss
    • 10. What is the difference between mysql_connect and mysql_pconnect?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment