#011006: Enhance ezcAuthSessionFilter for performance critical environments

Description:

<koredn> I still do not really see the reason for the session filter at all...
Derick: what do you mean?
<koredn> Do we really want the user to initialize and run the complete auth stuff on each request (This is, what the session filter advocates), or just run the auth stuff once, and let the user handle the session stuff
<koredn> This is performance critical, I think...
Derick: but if the session stuff works, the rest is not run
<koredn> It still requires a bunch of initializations
Derick: i see your points
[...]
<koredn> Hmm, the session stuff needs to be done in nearly every request, once you start using it, perhaps an additional static method like ezcAuthSessionFilter::isValid() would help, that you may call, and use everything else, only if this one fails. Inconsistent API, but maybe fast and would not affect anything we have now
<koredn> My suggestion: For applications, where performance matters more then beautiful code, we could provide an optioonal mechanism, like the described above, so thet the user may do: if (!sesssionFilter::Valid) { /* Auth filter init and stuff */ }. Keep the other way for users who like it clean, of course. Let's introduce such a method to the filter and describe it in the tutorial with the mentioned prerequisites
Alexandru_: this idea sounds good to me


Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments

No attachments for this issue.


- Comments

Implemented in rev. 5926 (trunk). It will be available in Authentication 1.1alpha1.

#253339 by Alexandru Stanoi on August 16th, 2007 [Permanent Link]

- History
Properties
Type Enhancement
Priority Medium
Component Components » Authentication
Affects Unknown
Fix Versions 1.1alpha1 - Authentication 1.1alpha1
2007.2alpha1 - eZ components 2007.2alpha1
Reporter Kore Nordmann
Responsible Alexandru Stanoi
Status 0 Closed
Resolution Implemented
Created June 21st, 2007
Updated August 16th, 2007
Resolved August 16th, 2007
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels