security_check_session_saved_ip_key
security_check_session_saved_ip_key
security_check_session_saved_ip_key(string $session_ip_key)
Parameter | Description |
---|---|
$session_ip_key | A session key in your project that you want the engine to make sure it exists and has the IP address of the active user before allowing any access to your private report. |
$report = new ReportOptions(SRE_PRIVATE_REPORT);
$report->select_tables(array("items"))
->select_all_fields()
->security_init("some_login_page_url","some_logout_page_url","project1")
->security_check_session_saved_user_key("user_id")
->security_check_session_saved_ip_key("user_ip");
$engine = new CustomEngine($report);
$report_path = $engine->create_report();
if ($report_path) {
echo "Your report URL:" . $report_path;
}