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

    Yes, you can put arrays in sessions, example: $_SESSION['name_here'] = $your_array; Now you can use the $_SESSION['name_here'] on any page you want but make sure that you put the …

  2. PHP Sessions - W3Schools

    Session variables solve this problem by storing user information to be used across multiple pages (e.g. username, favorite color, etc). By default, session variables last until the user closes the …

  3. 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.

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

    Session arrays are like session variables which maintain a unique link between user's web page and the server. You can read more on session management here. Let us start with declaring a …

  5. 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:

  6. PHP | Sessions - GeeksforGeeks

    Apr 2, 2025 · Session Variables: Data that needs to be carried across different pages is stored in the $_SESSION array. For example, a user’s name or login status can be stored in this array.

  7. PHP session array - Stack Overflow

    Jun 24, 2014 · how can i store this array into a session and use sessions to move the elements inside the array up/down/left/right diagonally. 0 array(0,0,0,0,0,0,0,0), 1 array(0,0,0,0,0,0,0,0), …

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

    A session array, like a regular array, can theoretically hold any type of information you could think of. We’ll show you some of the ways in which you can create an array inside your session.

  9. Comprehensive Guide to PHP Sessions: How They Work with …

    Sep 9, 2024 · Starting a Session: Use session_start() to begin the session. Storing Session Variables: Assign values to the $_SESSION array. Retrieving Session Variables: Access …

  10. How to assign an array inside session in PHP - baransel.dev

    Jan 3, 2020 · As well as assigning values to sessions, such as numbers, we can also assign arrays. To do that, you just have to pretend to be an ordinary array. Session array example:

  11. Some results have been removed
Refresh