I see your video to make public functions and am wondering where you place the public function (what file) and also is there a way to find out if a user is logged in or logged out using jquery. I need to perform something in jquery and I need to see if the user is logged in or logged out and can not figure out how to do that.