EDD_Session
EDD_Session Class
Description Description
Source Source
File: includes/class-edd-session.php
Changelog Changelog
Version | Description |
---|---|
1.5 | Introduced. |
Methods Methods
- __construct — Get things started
- get — Retrieve a session variable
- get_blacklist — Retrieve the URI blacklist
- get_id — Retrieve session ID
- init — Setup the WP_Session instance
- maybe_start_session — Starts a new session if one hasn't started yet.
- set — Set a session variable
- set_cart_cookie — Set a cookie to identify whether the cart is empty or not
- set_expiration_time — Force the cookie expiration time to 24 hours
- set_expiration_variant_time — Force the cookie expiration variant time to 23 hours
- should_start_session — Determines if we should start sessions
- use_cart_cookie — Determines if a user has set the EDD_USE_CART_COOKIE
- use_php_sessions — Starts a new session if one hasn't started yet.