403Webshell
Server IP : 172.67.179.166  /  Your IP : 172.68.118.174
Web Server : nginx/1.20.2
System : Linux 172-104-110-161.ip.linodeusercontent.com 3.10.0-1160.36.2.el7.x86_64 #1 SMP Wed Jul 21 11:57:15 UTC 2021 x86_64
User : www ( 1000)
PHP Version : 8.1.9
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/data.drivers-acer.com/framework-4.1.3/system/Cookie/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/data.drivers-acer.com/framework-4.1.3/system/Cookie/CookieInterface.php
<?php

/**
 * This file is part of the CodeIgniter 4 framework.
 *
 * (c) CodeIgniter Foundation <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace CodeIgniter\Cookie;

/**
 * Interface for a value object representation of an HTTP cookie.
 *
 * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie
 */
interface CookieInterface
{
	/**
	 * Cookies will be sent in all contexts, i.e in responses to both
	 * first-party and cross-origin requests. If `SameSite=None` is set,
	 * the cookie `Secure` attribute must also be set (or the cookie will be blocked).
	 */
	public const SAMESITE_NONE = 'none';

	/**
	 * Cookies are not sent on normal cross-site subrequests (for example to
	 * load images or frames into a third party site), but are sent when a
	 * user is navigating to the origin site (i.e. when following a link).
	 */
	public const SAMESITE_LAX = 'lax';

	/**
	 * Cookies will only be sent in a first-party context and not be sent
	 * along with requests initiated by third party websites.
	 */
	public const SAMESITE_STRICT = 'strict';

	/**
	 * RFC 6265 allowed values for the "SameSite" attribute.
	 *
	 * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
	 */
	public const ALLOWED_SAMESITE_VALUES = [
		self::SAMESITE_NONE,
		self::SAMESITE_LAX,
		self::SAMESITE_STRICT,
	];

	/**
	 * Expires date format.
	 *
	 * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Date
	 * @see https://tools.ietf.org/html/rfc7231#section-7.1.1.2
	 */
	public const EXPIRES_FORMAT = 'D, d-M-Y H:i:s T';

	/**
	 * Returns a unique identifier for the cookie consisting
	 * of its prefixed name, path, and domain.
	 *
	 * @return string
	 */
	public function getId(): string;

	/**
	 * Gets the cookie prefix.
	 *
	 * @return string
	 */
	public function getPrefix(): string;

	/**
	 * Gets the cookie name.
	 *
	 * @return string
	 */
	public function getName(): string;

	/**
	 * Gets the cookie name prepended with the prefix, if any.
	 *
	 * @return string
	 */
	public function getPrefixedName(): string;

	/**
	 * Gets the cookie value.
	 *
	 * @return string
	 */
	public function getValue(): string;

	/**
	 * Gets the time in Unix timestamp the cookie expires.
	 *
	 * @return integer
	 */
	public function getExpiresTimestamp(): int;

	/**
	 * Gets the formatted expires time.
	 *
	 * @return string
	 */
	public function getExpiresString(): string;

	/**
	 * Checks if the cookie is expired.
	 *
	 * @return boolean
	 */
	public function isExpired(): bool;

	/**
	 * Gets the "Max-Age" cookie attribute.
	 *
	 * @return integer
	 */
	public function getMaxAge(): int;

	/**
	 * Gets the "Path" cookie attribute.
	 *
	 * @return string
	 */
	public function getPath(): string;

	/**
	 * Gets the "Domain" cookie attribute.
	 *
	 * @return string
	 */
	public function getDomain(): string;

	/**
	 * Gets the "Secure" cookie attribute.
	 *
	 * Checks if the cookie is only sent to the server when a request is made
	 * with the `https:` scheme (except on `localhost`), and therefore is more
	 * resistent to man-in-the-middle attacks.
	 *
	 * @return boolean
	 */
	public function isSecure(): bool;

	/**
	 * Gets the "HttpOnly" cookie attribute.
	 *
	 * Checks if JavaScript is forbidden from accessing the cookie.
	 *
	 * @return boolean
	 */
	public function isHTTPOnly(): bool;

	/**
	 * Gets the "SameSite" cookie attribute.
	 *
	 * @return string
	 */
	public function getSameSite(): string;

	/**
	 * Checks if the cookie should be sent with no URL encoding.
	 *
	 * @return boolean
	 */
	public function isRaw(): bool;

	/**
	 * Gets the options that are passable to the `setcookie` variant
	 * available on PHP 7.3+
	 *
	 * @return array<string, mixed>
	 */
	public function getOptions(): array;

	/**
	 * Returns the Cookie as a header value.
	 *
	 * @return string
	 */
	public function toHeaderString(): string;

	/**
	 * Returns the string representation of the Cookie object.
	 *
	 * @return string
	 */
	public function __toString();

	/**
	 * Returns the array representation of the Cookie object.
	 *
	 * @return array<string, mixed>
	 */
	public function toArray(): array;
}

Youez - 2016 - github.com/yon3zu
LinuXploit