@property<EOL><INDENT>def logged_in(self):<DEDENT>
if "<STR_LIT>" not in self.store:<EOL><INDENT>return False<EOL><DEDENT>response = self.request("<STR_LIT>", allow_redirects=False)<EOL>if response.status_code != <NUM_LIT>:<EOL><INDENT>return False<EOL><DEDENT>if response.headers["<STR_LIT:location>"] != self.me.links["<STR_LIT>"]:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Return boolean if is logged in