当前位置: 首页>>代码示例>>PHP>>正文


PHP start_user_session函数代码示例

本文整理汇总了PHP中start_user_session函数的典型用法代码示例。如果您正苦于以下问题:PHP start_user_session函数的具体用法?PHP start_user_session怎么用?PHP start_user_session使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了start_user_session函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: run

 function run(&$filter_chain, &$request, &$response)
 {
     debug::add_timing_point('session startup filter started');
     require_once LIMB_DIR . '/core/lib/session/session.class.php';
     start_user_session();
     debug::add_timing_point('session startup filter finished');
     $filter_chain->next();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:8,代码来源:session_startup_filter.class.php

示例2: require_once

<?php	
/**********************************************************************************
* Copyright 2004 BIT, Ltd. http://www.0x00.ru, mailto: bit@0x00.ru
*
* Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
***********************************************************************************
*
* $Id$
*
***********************************************************************************/

require_once(LIMB_DIR . 'core/lib/session/session.class.php');
require_once(LIMB_DIR . 'core/model/chat/chat_system.class.php');

start_user_session();

if(!$_REQUEST['id'])
	exit();

$file = chat_system :: get_chat_file($_REQUEST['id']);

if (!$file)
{
	header("HTTP/1.1 404 Not found");
}
else
{
	header("Pragma: public");
	header("Cache-Control: private");
	header("Date: " . date("D, d M Y H:i:s") . " GMT");
	header("Content-type: {$file['mime_type']}");
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:31,代码来源:chat_file.php

示例3: _inititiliaze_user_session

 function _inititiliaze_user_session()
 {
     require_once LIMB_DIR . 'core/lib/session/session.class.php';
     start_user_session();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:5,代码来源:limb_application.class.php

示例4: or

    it under the terms of the GNU Affero General Public License as
    published by the Free Software Foundation, either version 3 of the
    License, or (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see http://www.gnu.org/licenses/.
-->
<?php 
require_once 'backend.php';
// this starts the session
start_user_session($assemblervars);
$time = time();
$sessionID = getSessionId();
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<title>e-NABLE Hand-o-matic</title>

	<!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]-->
	<!-- Latest compiled and minified CSS -->
开发者ID:arun13,项目名称:Service-Station,代码行数:31,代码来源:index.php


注:本文中的start_user_session函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。