D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
ksclnmuac
/
public_html
/
jobs
/
application
/
libraries
/
Filename :
SessionValidator.php
back
Copy
<?php /** * Description of User * * @author Softpro India Pvt. Ltd. */ class SessionValidator { //put your code here public static function validateSession($usedBy = '') { $ins = &get_instance(); $userData = ""; if ($usedBy == '') { $userData = $ins->session->userdata("job_admin_data"); } else { $userData = $ins->session->userdata("userData"); } if ($userData != NULL) { if ($userData["isLoggedIn"]) { return true; } else { return false; } } else { return false; } } }