sessionDestroy

Description

Removes all data for the specified session ID from the database.

Syntax

bool sessionDestroy (string $session_id)



Parameter $session_id

Expected type: String
Description: A valid PHP session ID



Return value

Expected type: Boolean
Description: False if the session ID is invalid, true if the query succeeded (regardless of whether or not anything was deleted) or dies with an error if there was a problem


Notes

  • Used as the 5th callback argument for session_set_save_handler
  • Only used when database-driven sessions are enabled
Advertisement: