本文整理匯總了PHP中SessionUtil::save方法的典型用法代碼示例。如果您正苦於以下問題:PHP SessionUtil::save方法的具體用法?PHP SessionUtil::save怎麽用?PHP SessionUtil::save使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SessionUtil
的用法示例。
在下文中一共展示了SessionUtil::save方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: data
<?php
#
# Updates Lab data (Similar to revert)
# Called via POST from lab_config_home.php
# Redirects back after update is complete
#
include "../includes/header.php";
include "../includes/db_constants.php";
//include("../export/backup_lib.php");
//include("../includes/user_lib.php");
$saved_session = SessionUtil::save();
//$labConfigId = 129;
$labConfigId = $_REQUEST['labConfigId'];
$base = $labConfigId . "00000000000";
$dateFrom = $_REQUEST['yearFrom'] . $_REQUEST['monthFrom'] . $_REQUEST['dayFrom'];
$dateTo = $_REQUEST['yearTo'] . $_REQUEST['monthTo'] . $_REQUEST['dayTo'];
function page_redirect($is_done, $lid)
{
if ($lid != 0) {
$url_string = "lab_config_home.php?id=" . $_REQUEST['lid'];
} else {
$url_string = "lab_configs.php?id=0";
}
if ($is_done === true) {
$url_string .= "&revert=1";
} else {
$url_string .= "&revert=0";
}
header("Location:" . $url_string);
}