0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
[
Home
]
File: tiki-cookie-jar.php
<?php // (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: tiki-cookie-jar.php 33195 2011-03-02 17:43:40Z changi67 $ /* These 4 lines of code are a presentation of Louis-Philippe Huberdeau For Tiki CMS/Groupware Released under the same licence as the rest of the project This page is only meant to be called from the browser's XMLHttpRequest classes. All it does is grab the parameters and store them in the session. The parameters in the session will be stored under $_SESSION['tiki_cookie_jar'][ $parameter_name ] */ $tikiroot = dirname($_SERVER['PHP_SELF']); $session_params = session_get_cookie_params(); session_set_cookie_params($session_params['lifetime'],$tikiroot); unset($session_params); session_start(); if( isset( $_GET ) ) foreach( $_GET as $key=>$value ) $_SESSION['tiki_cookie_jar'][$key] = $value;