[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] logging in with CGI::Session and CGI::Application


> It is badly named then... I wonder how many people skipped checking it out
> because of its name..

Doubtless a lot -- I skipped it for years :)

> I've not even looked at it before.. is it much like CGI::Session??

I haven't used CGI::Session at all (and thus have no reason to say you
shouldn't use it).  Glancing at the docs, CGI::Session looks to be both
more comprehensive and thus less flexible.  Apache::Session doesn't set
cookies for you, track expiration times, or any other things.  It just:
-associates a unique id with a data structure
-persistantly stores said data structure
-recalls said data structure given the id again

This lets me track sessions with it, but also use it as persistant
memory that can be shared across apps.  At the same time, To do CGI
sessions with it I have some additional work to do.  (Though since I
tend to write mod_perl handlers to do authentication and session
maintenance, I like that part).

Seems to me you have no real reason to change, but I'd recommend
checking out the docs to add it to your mental toolbox for the future.

-- 
SwiftOne
suppressed

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.