You are writing a PHP script and you need to start a session. How would you do this?

  • session_start()
  • start_session()
  • initialize_session()
  • open_session()
To start a session in PHP, you can use the session_start() function. This function must be called at the beginning of your PHP script before any session variables are accessed. It initializes a new session or resumes an existing session. For more details, refer to: http://php.net/manual/en/function.session-start.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *