Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

ANNOUNCE: CGI::Session::Simple

by $code or die (Deacon)
on Mar 18, 2002 at 19:05 UTC ( [id://152559]=perlmeditation: print w/replies, xml ) Need Help??

CGI::Session::Simple provides a Simple API for CGI Sessions. Session data is stored server-side with Cache::FileCache and sessions can be maintained via session id stored in cookies or CGI parameters. A tie interface is also provided for simplicity.

Further information and documentation is available here. To install, download the tarball and perl Makefile.PL && make ...

Suggestions, comments and criticisms are very much appreciated ;)

___ Simon Flack ($code or die)
$,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
=~y'_"' ';eval"die";print $_,lc substr$@,0,3;

Replies are listed 'Best First'.
Re: ANNOUNCE: CGI::Session::Simple
by drewbie (Chaplain) on Mar 18, 2002 at 20:54 UTC
    How does your module differ from that of Apache::Session? If you didn't know, A:S does NOT depend on Apache or mod_perl. But it does do sessions very well, with all kinds of backing stores. How does your module handle locking? That can get tricky w/ file-based storage, but A:S has had it's methods tested by many users. Just a thought. If you're not too weded to your module, you might want to try Apache::Session. At a minimum, I'm sure you could take something useful out of it.

    time passes...: From looking at your docs you probably didn't realize that A:S is usable in a CGI environment. Take a look. Apache::Session

      Thanks for your reply. I wasn't sure if Apache::Session worked outside Apache or mod_perl. Thankyou for clearing that up.

      Looking again at the docs for Apache::Session, the thing that seems to be missing there is timing-out the session. Admitedly, it would be easy to do this yourself in your application - adding a timestamp or something to the session. But I need to look more closely at it to see if this is the case.

      Given that Apache::Session is not dependent upon Apache and the existance of Apache::Session::CacheAny, I think perrin is right - this module is redundant, and I shan't be uploading it to the CPAN. But, it was a worthwhile exercise and it will be available on my website if anyone is interested.

      Cheers, Simon

      ___ Simon Flack ($code or die)
      $,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
      =~y'_"' ';eval"die";print $_,lc substr$@,0,3;
        As you said, it is redundant. But isn't it fun to build something from scratch, and better, to look back and see the lessons you've learned. Reinventing the wheel _can be_ fun, and sometimes it's even useful. I'd guess that it was some of both for you. :-)
      Cache::Cache does provide atomic updates. However, there's already a module out there for using Apache::Session with Cache::Cache, so this module is still probably redundant.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://152559]
Approved by root
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-05-21 23:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found