About 475,000 results
Open links in new tab
  1. php - Array as session variable - Stack Overflow

    Yes, you can put arrays in sessions, example: Now you can use the $_SESSION['name_here'] on any page you want but make sure that you put the session_start() line before using any …

  2. How to create a session array in php - Stack Overflow

    Feb 21, 2019 · I need to create a session array that summarizes the array data - county - state - income - count. I just don't know how to create a new Session array to hold the above data. I …

  3. PHP Sessions - W3Schools

    Start a PHP Session. A session is started with the session_start() function. Session variables are set with the PHP global variable: $_SESSION. Now, let's create a new page called …

  4. PHP: Storing an array in a session variable. - This Interests Me

    Dec 14, 2015 · Storing an array in a session variable is simple, and it works exactly the same as storing string values or whatnot. Have a look at the following PHP code snippet: <?php //Start …

  5. PHP session array - Stack Overflow

    Jun 24, 2014 · Yes. you can store and update an array in session. use like this : session_start(); $_SESSION['youarray'] =$board; and now do updates in $_SESSION['youarray'] array …

  6. PHP | Sessions - GeeksforGeeks

    Apr 2, 2025 · How Do PHP Sessions Work? Session Start: When a user accesses a PHP page, the session gets started with the session_start() function. This function initiates the session …

  7. Session array in PHP adding or deleting elements - Plus2net

    What is the syntax for adding elements to a session array in PHP? How do you access and retrieve values from a session array in PHP? Can you modify the values of a session array …

  8. PHP Session Array: Keep Track of Your Users - Udemy Blog

    PHP Session Array. Just like session variables, you can use an array to keep track of your users. The array may include variables like the UID of the user, the user name and the password. A …

  9. PHP: $_SESSION - Manual

    An associative array containing session variables available to the current script. See the Session functions documentation for more information on how this is used. This is a 'superglobal', or …

  10. PHP Sessions (Very Simple Examples) - Code Boxx

    Nov 14, 2023 · This tutorial will walk through examples of how to use sessions, and how they work in PHP. Free code download included.

  11. Some results have been removed
Refresh