logo       

Re: [ANNOUNCE] CGI::Application::Session 0.03: msg#00091

Subject: Re: [ANNOUNCE] CGI::Application::Session 0.03



Is there an easy way to get this to work with an earlier version of C::A,
in light of the "critical bug" announced earlier this morning?

Thanks,
Brian



                                                                                
                                                         
                      cees@xxxxxxxxxxxx                                         
                                                         
                      m.au                     To:       
cgiapp@xxxxxxxxxxxxxxxxx                                                        
                                               cc:                              
                                                         
                      02/11/2004 09:41         Subject:  [cgiapp] [ANNOUNCE] 
CGI::Application::Session 0.03                              
                      AM                                                        
                                                         
                                                                                
                                                         
                                                                                
                                                         





I'd like to announce that the first public release of
CGI::Application::Session is now available on CPAN.  This module
seamlessly integrates CGI::Session support into CGI::Application.  Since
this is the first public release, the code  is still considered alpha,
and the functionality is subject to change (though I will try my best to
avoid any interface changes).

The module is very simple to use.  Simply add a 'use
CGI::Application::Session' at the top of your CGI::Application module
and you now have access to three new methods (session, session_config,
session_cookie).  Configuration is not required as the module will
choose some sane defaults.

Here is the simplest example of how to use this module:

use base qw(CGI::Application);
use CGI::Application::Session;

sub my_runmode {
   my $self = shift;

   # Get the users language from the session
   my $language = $self->session->param('language');
   ...
}

That will automatically setup file based sessions using CGI::Session
without needing any configuration options.  If you want more control
over how the session is created read the docs on 'session_config' to see
how you can customize the behaviour.  Also read the CGI::Session docs
for more info on what you can do with the session object.

For those of you who played with the 0.01 release I posted a couple of
weeks ago, there is one major change that I made with regards to the
session_config method.  It is more configurable now, but alas it is not
backwards compatible with the 0.01 release, so please read the docs
and/or Changes file for the updates.

Also, the module depends on the latest version (3.21) of
CGI::Application. It uses the new header_add method to automatically add
a cookie into the outgoing headers.  One caveat with this is that you
shouldn't use the header_props method in your code anymore, as it will
clobber the cookie (or you can turn off cookie support and manage the
cookies yourself).

Please let me know what you think of this module.  I would appreciate
any constructive critisism on the code and the interface.

Cheers,

Cees


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx





---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe