Odyssey
lnapprefresh.i
1 <?php
2 /*
3 This will first TEAR apart the cookie and validate it's contents..
4 It will NOT update an outdated cookie.
5 
6 It will either return a TRUE or FALSE...??
7 */
8  // ** GUILTY!! unless proven INNOCENT
9  $Refresh_Return = "False";
10 
11  // ** GET THE COOKIE --
12  list($check_status, $check_user, $check_email, $check_logintype) = Check_Credentials();
13  if (intval($check_user) == $check_user) {
14  $DMSAPP_CURRENTUSERID = $check_user;
15  $DMSAPP_CURRENTEMAIL = strtolower($check_email);
16  $DMSAPP_LOGINTYPE = $check_logintype;
17 
18  if ($check_status) {
19  // ** THE CREDENTIALS ARE VALID -- EXTEND THE COOKIE
20  DMSAppSetCookie($HB_ENV, $DMSAPP_CURRENTUSERID, $DMSAPP_LOGINTYPE);
21  $Refresh_Return = "True";
22  }
23  }
24  print $Refresh_Return;