library/src/network/httpd/BP-HTTPdSessions.cc
// Returns BP_TRUE if the session has expired, or BP_FALSE if it's
// still valid.
Returns BP_TRUE if the session has expired, or BP_FALSE if it's
still valid.
Returns BP_TRUE if the session has expired or BP_FALSE if it ' s still valid .
BP_BOOL BP_HTTPdSessionExpired
(
	P_BP_HTTPD_USER_SESSION user_session
)
{
	if(!user_session)
		return BP_TRUE;
	if(user_session->life_in_seconds >= (BP_TimeGetSecondsSinceUnixEpoch() - user_session->issued_time))
		return BP_FALSE;
	return BP_TRUE;
}
BP_BOOL BP_HTTPdSessionExpired ( P_BP_HTTPD_USER_SESSION user_session ) { if ( ! user_session ) return BP_TRUE ; if ( user_session -> life_in_seconds >= ( BP_TimeGetSecondsSinceUnixEpoch ( ) - user_session -> issued_time ) ) return BP_FALSE ; return BP_TRUE ; }
Returns BP_TRUE if the session has expired, or BP_FALSE if it's
still valid.
Returns BP_TRUE if the session has expired or BP_FALSE if it ' s still valid .
// session is automatically expired if null // if we have life left, return false // return true