Class WC_Session_Handler
Handle data for the current customers session. Implements the WC_Session abstract class
Long term plan will be, if https://github.com/ericmann/wp-session-manager/ gains traction in WP core, this will be switched out to use it and maintain backwards compatibility :)
Partly based on WP SESSION by Eric Mann.
- WC_Session
- WC_Session_Handler
Package: WooCommerce\Classes
Category: Class
Author: WooThemes
Version: 2.0.0
Class: WC_Session_Handler
Located at includes/class-wc-session-handler.php
Category: Class
Author: WooThemes
Version: 2.0.0
Class: WC_Session_Handler
Located at includes/class-wc-session-handler.php
Methods summary
public
|
|
public
|
#
set_customer_session_cookie( mixed $set )
Sets the session cookie on-demand (usually after adding an item to the cart). |
public
boolean
|
#
has_session( )
Return true if the current user has an active session, i.e. a cookie to retrieve values |
public
|
|
public
integer|string
|
|
public
mixed
|
|
public
array
|
|
public
|
|
public
|
Methods inherited from WC_Session
__get()
,
__isset()
,
__set()
,
__unset()
,
get()
,
get_customer_id()
,
set()