SESSION BEFORE ALL:
Array
(
    [sonettrk] => 366ad9775954f9bf51ab2b1fa61ed4bc
)
COOKIE BEFORE ALL:
Array
(
    [PHPSESSID] => 2cc6260e1e7e68ec1c9c7de61b9d9c17
)
Session Key loaded.
Session Key: 366ad9775954f9bf51ab2b1fa61ed4bc
Cookie Key :
Flushing SESSION!!!? should it really be doing this?.
Hopefully empty Session:
Array
(
)
Session:
Array
(
    [sonettrk] => 
)
Cookie:
Array
(
    [PHPSESSID] => 2cc6260e1e7e68ec1c9c7de61b9d9c17
)
Trying to load guest from session. What to do here? should there be a full user object that belongs to the guest?
CookieKey Before call:
This is the full user contstructor.
NAME:
getPermissions
ARGS:
Array
(
)
Should be loading permissions here.Yeehaw!
NOTE: once the user obj and permissions are loaded, then we need to determine if they are allowed the route and object they are requesting. If they are not, we need to determine which type of not authorized 401 response we need to send, or, in the case of a guest accessing a webview, determine if so configured what form of authentication page to redirect to, all the while capturing the original target.The objective here, this should be to load a view. The view should then load scripts which call services. We will also need a method to call services.
//TODO: figure out where the token gets generated and where it gets passed and stored.
IN ROUTER process after param merge
NAME:
getPermissions
ARGS:
Array
(
)
Permissions from user in Router::process
Checking PERMISSIONS of user for page in ROUTER
SESSION FINAL:
Array
(
    [sonettrk] => 
)
COOKIE FINAL:
Array
(
    [PHPSESSID] => 2cc6260e1e7e68ec1c9c7de61b9d9c17
)