SESSION BEFORE ALL:
Array
(
    [sonettrk] => e894d23d02311c456caa104f937a6367
)
COOKIE BEFORE ALL:
Array
(
    [PHPSESSID] => 639b4a94e09871d2191bb8dfb84e084f
)
Session Key loaded.
Session Key: e894d23d02311c456caa104f937a6367
Cookie Key :
Flushing SESSION!!!? should it really be doing this?.
Hopefully empty Session:
Array
(
)
Session:
Array
(
    [sonettrk] => 
)
Cookie:
Array
(
    [PHPSESSID] => 639b4a94e09871d2191bb8dfb84e084f
)
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] => 639b4a94e09871d2191bb8dfb84e084f
)