** USAGE: page by page based security system using 2 tags: a. CF_MAPTECH_LOGINLINK & b. CF_MAPTECH_LOGINCHECK Basic Idea: login +---+ +---+ +---+ | a | --> | | --> | b | +---+ +---+ +---+ | ^ +-----------------------+ Page "a" is a public access page which uses CF_MAPTECH_LOGINLINK to link to a page that you want to secure. Page "b" is a secured page which uses CF_MAPTECH_LOGINCHECK to verify that the user has access to the page. If there is no access granted, an access denied error page is displayed. On page "a", CF_MAPTECH_LOGINLINK checks to see if the user has logged in previously by checking for a cookie called "wwwmaptechcom" (no dots). If the cookie exists, it creates a link to page "b", passing in the value of the cookie, which is the user's unique number. On page "b", CF_MAPTECH_LOGINCHECK expects to have a user number passed to it because the cookie exists. It checks for a valid user number. If the cookie does not exist, it creates a link to the login page (where the user can login, create a new login, or get login information if forgotten). Once successfully logged in, the user is forwarded to page "b". Page "b" then checks for a valid username and password, which is passed from the login. CF_MAPTECH_LOGINLINK Params: GOTO = PATH INFO = STRUCT INC = STRING HYPERLINK = STRING WDDX = BOOLEAN CRYPT = BOOLEAN Example Syntax: Example Output: if cookie exists: Click Here! if cookie !exists: Click Here! Note: if JUMP is TRUE, the output will be a to the above link ... so the user will be forwarded without clicking on anything. CF_MAPTECH_LOGINCHECK Params: USERNAME = STRING PASSWORD = STRING USERNUM = INTEGER INFO = WDDX SERIALIZED STRUCT INC = STRING WDDX = BOOLEAN CRYPT = BOOLEAN Example Syntax: Example Output: If login is successful, each variable below is returned with a value. (Note: "info" is returned as a real struct, and must be referenced with the dot notation). variables: #usernum#
#username#
#password#
info struct: #info.field_one#
#info.field_two#