devel:working_example_of_trustexternal
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
devel:working_example_of_trustexternal [2012-11-14 19:27] – 24.18.245.38 | devel:working_example_of_trustexternal [2012-11-15 01:17] – deleted breaks ach | ||
---|---|---|---|
Line 6: | Line 6: | ||
- You must fill in the $USERINFO array on every page load | - You must fill in the $USERINFO array on every page load | ||
- | So my solution is to first check the $_SESSION for the previous login. If found, fill the $USERINFO array and return true. Only if this is not found, do we go the database to look for a login.\\ | + | So my solution is to first check the $_SESSION for the previous login. If found, fill the $USERINFO array and return true. Only if this is not found, do we go the database to look for a login. |
- | Here is my complete solution. This example checks a mongodb database, but you should be able to easily change this to use any other datastore.\\ | + | |
- | \\ | + | |
- | <code auth_mongodb.class.php> | + | Here is my complete solution. This example checks a mongodb database, but you should be able to easily change this to use any other datastore. |
+ | |||
+ | < | ||
class auth_mongodb extends auth_basic { | class auth_mongodb extends auth_basic { | ||
devel/working_example_of_trustexternal.txt · Last modified: 2018-08-01 12:14 by java4life