Session::__construct()
Description #
Initialize the class.
Source #
File: includes/class/class-session.php
public function __construct() { if ( isset( $_COOKIE[ $this->name ] ) ) { $this->id = stripslashes( ap_sanitize_unslash( $_COOKIE[ $this->name ] ) ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput } else { $this->id = $this->generate_id(); $this->set_cookie(); } }
Expand full source code Collapse full source code View on GitHub: includes/class/class-session.php:82
Add your comment