At 02:10 AM 06/11/02 +0800, Stas Bekman wrote:
>> Well, I was only intending it as a teaser, because I don't want to go 
>> creating a complete application using sessions. That handler doesn't do 
>> anything, it just shows how easy it is to get session info and use it.
>
>easy to whom? One must wear a newbie hat (perhaps a hat of someone who 
>doesn't know perl very well) when designing such a doc.
>
>On the opposite it's very easy to turn the new person away, if things 
>seem to complicated (to him!).
>
>Therefore it's probably to present just a little, along the lines that 
>Bill has done and explain things.

Now you know why I left those last few sections blank. ;)  I feared that
they would end up being so complicated that we should just point to the
real docs.

But they are also far enough down that list that maybe a little more
complicated example would be fine.  I would like to see complete working
examples, though.  Would a good example be to grab a session using
Apache::Cookie and Apache::DBI and set pnotes with the session?  And create
a new empty session if one doesn't exist with one of the unique ID
generator modules?  The trick is getting it down to a very few lines of code.

>>> * Another issue is that while many people come to mod_perl via the 
>>> registry family, this is not the feature that should come up first,
>>>
>>>   "Easily create custom modules that become part of Apache"
>>>   "Gain access to all request stages"
>>>
>>> should probably come before registry.

I'd side with Per on this, Stas.  I think it's good to show a simple CGI
script converted to Apache::Registry first.  It's the kind of thing that
shows people that mod_perl can work for them right away, and they can
easily understand the example.  And good for admin types that need to see a
quick payoff.  It's just a foot-in-the-door type of teaser.

Hopefully, the "real" docs will make it clear that Apache::Registry is not
all of mod_perl.

(BTW -- it was Apache::Registry that allowed me to demo an existing CGI
application which was then approved to move to mod_perl.)



-- 
Bill Moseley
mailto:[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to