Ferreteria/v0.5/@cls/login/csLogin/IsLoggedIn: Difference between revisions
< Ferreteria | v0.5 | @cls | login
Jump to navigation
Jump to search
m (Woozle moved page Ferreteria/v0.5/@cls/login/login/IsLoggedIn() to Ferreteria/v0.5/@cls/login/login/isloggedin without leaving a redirect: for compatibility with l/ver) |
No edit summary |
||
Line 1: | Line 1: | ||
{{fmt/title|<code>login\csLogin::IsLoggedIn()</code>}} | |||
==About== | ==About== | ||
* '''File''': {{l/ferreteria/code|login/status.php}} | * '''File''': {{l/ferreteria/code|login/status.php}} |
Revision as of 00:26, 15 June 2022
login\csLogin::IsLoggedIn() |
About
- File: login/status.php
- Returns: TRUE iff all of the following are:
- Session is valid
- Session's Account ID is set
- Session's Account ID is not NULL
- Action:
- If there's no Session Status, creates a blank one.
- Return value depends on the Session having an Account ID set.
Thinking
The user can be in a logged-in state under either of these conditions:
- The user has just successfully submitted valid login credentials.
- The user's browser has submitted a valid Session cookie.
We need to allow for either of these to be true. (If neither is true, then the user is not logged in.)