Authentication - when is the right time?
hi there
I have problems understanding what the DevGuide to CF9 says.
On Page 246 it says:
---
Using the onRequestStart method
This method runs at the beginning of the request. It is useful for user authorization (login handling),
---
and later on the same page
---
User authentication
When an application requires a user to log in, include the authentication code, including the cflogin tag or code that calls this tag, in the onRequestStart method. Doing so ensures that the user is authenticated at the start of each request.
---
So far, I understand it well and I completely agree - it's the way I am implementing my pages, too.
------------------------------------------------------------------------
However, on the same page the manual says:
---
Using the onSessionStart method
This method is useful for initializing session data, such as user settings ...
---
Here my understanding disperses.
On my CF9 server, onSessionStart runs before onRequestStart.
So how can I initialize user settings before the user has logged in, since only the feedback of the authentication authority provides me with the user data?
What did I miss?
-Didix
