wp_session_start

Start new or resume existing session.

Description

wp_session_start(); 

Resumes an existing session based on a value sent by the _wp_session cookie.


Usage

  1. if ( !function_exists( 'wp_session_start' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/libraries/wp-session.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_session_start(); 
  7.  

Defined (2)

The function is defined in the following location(s).

/deprecated/includes/libraries/wp-session.php  
  1. function wp_session_start() { 
  2. $wp_session = WP_Session::get_instance(); 
  3. do_action( 'wp_session_start' ); 
  4.  
  5. return $wp_session->session_started(); 
/includes/Libraries/Session/wp-session.php  
  1. function wp_session_start() { 
  2. $wp_session = WP_Session::get_instance(); 
  3. do_action( 'wp_session_start' ); 
  4.  
  5. return $wp_session->session_started();