About 12,000,000 results
Open links in new tab
  1. php - Storing Form Data as a Session Variable - Stack Overflow

    Sep 25, 2010 · To use session variables, it's necessary to start the session by using the session_start function, this will allow you to store your data in the global variable $_SESSION …

  2. How can I check if a user is logged-in in php? - Stack Overflow

    Oct 9, 2009 · Luckily PHP offers a function for both the elements and a complete code would be: session_start(); // get a session to manipulate session_unset(); // remove all server data on the …

  3. session - Can a user alter the value of $_SESSION in PHP? - Stack …

    Apr 12, 2013 · PHP Session's work by storing a PHPSESSID cookie on the end user's computer that acts as an access key for server-based session information. That cookie value is a …

  4. How do I expire a PHP session after 30 minutes? - Stack Overflow

    } Notes: session.gc_maxlifetime should be at least equal to the lifetime of this custom expiration handler (1800 in this example); if you want to expire the session after 30 minutes of activity …

  5. proper way to logout from a session in PHP - Stack Overflow

    Session_unset(); only destroys the session variables. To end the session there is another function called session_destroy(); which also destroys the session . update : In order to kill the session …

  6. Using sessions & session variables in a PHP Login Script

    Dec 17, 2016 · To start a PHP session, you need to call session_start(). Similarly, to destroy a session and its data, you need to call session_destroy() (for example, when the user logs out):

  7. php - How to make use of session in REST API - Stack Overflow

    Apr 9, 2016 · They aren't actually making use of a session in the sense of a PHP session_start(). What they're really doing can be explained in a few steps: You ask for an API key: The service …

  8. Location for session files in Apache/PHP - Stack Overflow

    Feb 7, 2011 · What is the default location of session files on an installation of Apache/PHP on Ubuntu 10.10?

  9. How do you set up use HttpOnly cookies in PHP - Stack Overflow

    Aug 31, 2008 · For PHP's own session cookie (PHPSESSID, by default), see @richie's answer The setcookie() and setrawcookie() functions, introduced the boolean httponly parameter, …

  10. How do PHP sessions work? (not "how are they used?")

    A session gets destroyed when the user closes the browser or leaves the site. The server also terminates the session after the predetermined period of session time expires. These are the …