src/UClientPro.php
public function isCookieAlive()
	{
		//	...
		$bRet = false;

		if ( $this->isKeepAlive() )
		{
			//
			//	return false if user set to keep alive
			//
			$bRet	= true;
		}
		else
		{
			//	...
			$nLoginTime = $this->m_cUCProMain->getXTInstance()->getTValue( UCProConst::CKT_LOGIN_TM );
			if ( is_numeric( $nLoginTime ) )
			{
				//
				//	escaped time in seconds after user logged in
				//      the default timeout is 1 day.
				//
				$fTerm	= floatval( time() - floatval( $nLoginTime ) );
				$bRet	= ( $fTerm <= $this->m_cUCProMain->getConfig_nCookieTimeout() );
			}
			else
			{
				//
				//      login time is invalid
				//      So, we marked this cookie as timeout
				//
				$bRet	= false;
			}
		}

		return $bRet;
	}
public function isCookieAlive()
	{
		//	...
		$bRet = false;

		if ( $this->isKeepAlive() )
		{
			//
			//	return false if user set to keep alive
			//
			$bRet	= true;
		}
		else
		{
			//	...
			$nLoginTime = $this->m_cUCProMain->getXTInstance()->getTValue( UCProConst::CKT_LOGIN_TM );
			if ( is_numeric( $nLoginTime ) )
			{
				//
				//	escaped time in seconds after user logged in
				//      the default timeout is 1 day.
				//
				$fTerm	= floatval( time() - floatval( $nLoginTime ) );
				$bRet	= ( $fTerm <= $this->m_cUCProMain->getConfig_nCookieTimeout() );
			}
			else
			{
				//
				//      login time is invalid
				//      So, we marked this cookie as timeout
				//
				$bRet	= false;
			}
		}

		return $bRet;
	}
public function isCookieAlive ( ) { //	... $ bRet = false ; if ( $ this -> isKeepAlive ( ) ) { // //	return false if user set to keep alive // $ bRet = true ; } else { //	... $ nLoginTime = $ this -> m_cUCProMain -> getXTInstance ( ) -> getTValue ( UCProConst :: CKT_LOGIN_TM ) ; if ( is_numeric ( $ nLoginTime ) ) { // //	escaped time in seconds after user logged in //      the default timeout is 1 day. // $ fTerm = floatval ( time ( ) - floatval ( $ nLoginTime ) ) ; $ bRet = ( $ fTerm <= $ this -> m_cUCProMain -> getConfig_nCookieTimeout ( ) ) ; } else { // //      login time is invalid //      So, we marked this cookie as timeout // $ bRet = false ; } } return $ bRet ; }
check if cookie alive
@return bool
check if cookie alive