本文整理汇总了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);
}