From: Russell D. W. <rw...@in...> - 2002-09-30 13:30:15
|
Sometimes you just don't want to create a session or attempt to look for one... mostly for efficiency purposes... For example, if PayPal IPN (instant payment notification), or another credit-card validation system is calling my server (in most cases just one POST to a CGI will be made, and their client [server, actually] won't store the cookie I'm sure anyway), there is no reason to bother creating a session or seeing if one exists. In other cases, such as running a URL redirection service (which my company is doing, though currently not using pagekit), there is absolutely no reason to trigger session creation or look for a session. Users typically hit the server once, and they are instantly redirected to another site. Thousands of hits come in per hour, and creating a session is simply not efficient of CPU, disk, etc.. Especially because Apache::SessionX doesn't ever seem to clean up old sessions from the database (am I missing something here), and manual cleanups must be done, it makes sense to not create sessions at all when you won't need them. Well, it least it makes sense to me, but what do I know :-). Ideally I'd like to see a no_session attribute which can be put in the SECTION section (and possibly other sections) of the config file. Thanks, Russell ----- Original Message ----- From: "Boris Zentner" <bo...@am...> To: "Russell D. Weiss" <rw...@in...>; <pag...@li...> Cc: "pkit devel" <pag...@li...> Sent: Monday, September 30, 2002 4:53 AM Subject: Re: [Pagekit-users] SECTION no_session attribute? > > Hi, > > Am Samstag, 28. September 2002 17:40 schrieb Russell D. Weiss: > > I'd like to effectively make certain pages or sections not trigger the > > creation of a new session, or attempt to look for a current session. > > could you please elaborate, why this is usefull at all? > > > > > I did session any sort of attribute like this in the config. documentation. > > I could probably manually edit pkit_session_setup and/or > > pkit_auth_credential to get this working, but I'm wondering if there's a > > config attribute. > > We do not have a option for this right now. But find a untested patch that may > work. A new page attribute use_sessions. It defaults to 'yes'. > > So a use_sessions='no' in the section or page config part may (should) work. > > -- > Boris > |