Which superglobal array is used to access session variables in PHP?
- $_GET
- $_POST
- $_SESSION
- $_COOKIE
The superglobal array used to access session variables in PHP is $_SESSION. It stores session data that can be accessed across multiple pages during a user's session.
Loading...
Related Quiz
- Which of the following are valid ways to denote a comment in PHP?
- A ___________ typically connects personal devices within an individual's immediate vicinity, such as connecting a smartphone to a laptop via Bluetooth.
- You have a PHP script and you need to access data sent via the POST method from a form. How would you do this using the $_POST superglobal?
- In PHP, you can upload a file using an HTML form and the POST method, and you can access the uploaded file information using the $_FILES ______ array.
- PHP is a client-side scripting language.