MMCT TEAM
Server IP : 103.191.208.50  /  Your IP : 216.73.216.53
Web Server : LiteSpeed
System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64
User : celkcksm ( 1031)
PHP Version : 7.4.33
Disable Function : show_source, system, shell_exec, passthru, popen, exec
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/celkcksm/hrms.ncriptech.com/../ecampus.ncriptech.com/application/helpers/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/celkcksm/hrms.ncriptech.com/../ecampus.ncriptech.com/application/helpers/session_helper.php
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');


/**
 * Returns a session variable
 *
 * @access	public
 * @param	string	variable name
 * @return	boolean
 */	

if (!function_exists('session_userdata'))
{
	function session_userdata($key)
	{
		$CI =& get_instance();
		if (!isset($CI->session))
		{
			$CI->load->library('session');
		}
		
		return $CI->session->userdata($key);
	}
}

// --------------------------------------------------------------------

/**
 * Sets a session variable
 *
 * @access	public
 * @param	string	variable name
 * @return	boolean
 */	
if (!function_exists('session_set_userdata'))
{
	function session_set_userdata($value)
	{
		$CI =& get_instance();
		if (!isset($CI->session))
		{
			$CI->load->library('session');
		}
		
		return $CI->session->set_userdata($value);
	}
}
// --------------------------------------------------------------------

/**
 * Returns a session flash variable
 *
 * @access	public
 * @param	string	variable name
 * @return	boolean
 */	
if (!function_exists('session_flashdata'))
{
	function session_flashdata($key)
	{
		$CI =& get_instance();
		if (!isset($CI->session))
		{
			$CI->load->library('session');
		}

		return $CI->session->flashdata($key);
	}
}

// --------------------------------------------------------------------

/**
 * Sets a session flash variable
 *
 * @access	public
 * @param	string	variable name
 * @return	boolean
 */	
if (!function_exists('session_set_flashdata'))
{
	function session_set_flashdata($key, $value)
	{
		$CI =& get_instance();
		if (!isset($CI->session))
		{
			$CI->load->library('session');
		}
		return $CI->session->set_flashdata($key, $value);
	}
}
/* End of file session_helper.php */

MMCT - 2023