/** * get_cookie_id * * get the person_id of the cookie owner * * @access public * @return integer */ function get_cookie_id() { $cookie = new Cookie(); if ($cookie->validate()) { return $cookie->userid; } return 0; }
/** * Realiza el logout del usuario actual * */ function logout() { $cookie = new Cookie(); $cookie->validate(); session_id($cookie->session_id()); session_start(); session_destroy(); $cookie->logout(); }