On Thu, 2006-08-17 at 19:53 +0300, Vladimir S. Tikhonjuk wrote: > I used cookies and sessions to authenticate and authorizate user > into my app ( Apache2::AuthCookie ). So, every handler ( or most of them > ) have to get cookie, take a session id from it, makes session, and only > then > do its own work. > > So, the question is: Is there a possibility to get tied session hash > more quickly ?
Is it slow? If all you're doing is authentication, you don't need sessions at all. You can just use a cookie with a token that you can check in it. Look at something like Apache::AuthCookie. > The same thing happens with Tamplate object. Most part of my scripts > have to generate output over a Template Toolkit. So, may I declare the > Template object in the only place, and then use it into response handlers ? You should create a single Template object, put it in a global, and reuse it. > I'm not shure yet: was it good idea to start > project with "clear" mod_perl and not using Catalyst for example. May be > some one has some serious arguments whether to use frameworks or not ? You will learn more if you use mod_perl directly, and will have an easier time using mod_perl features like subrequests and filters. You may get something working faster by using a framework. - Perrin