How can you start a session in PHP?

  • session_start()
  • start_session()
  • initialize_session()
  • open_session()
To start a session in PHP, you can use the session_start() function. This function initializes a new session or resumes an existing session. It needs to be called at the beginning of your PHP script before any session variables are accessed. 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 *