logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: CGI::Sesion works incorrectly: msg#00007

Subject: Re: CGI::Sesion works incorrectly
Sergey Brutsky wrote:
> Hi guys.
> I have a very small trouble;
> I have 2 files index.pl and SessionSingleton.pm.
> 
> If I use this construction my  $session    = CGI::Session->new( undef, undef, 
> { Directory => "/tmp/sessions" } );
> it works fine
> 
> But if I use this CGI::Session->new( undef, undef, { Directory => 
> "/tmp/sessions" } );
> it doesn't work, sessions are not created.
> 
> Why ? And what should I correct in SessionSingleton file to made it works 
> properly ?


Sergey,

The subject says that the module is not working correctly, but I'm not 
sure exactly which bug you reporting. Could just share a failing 
Test::More-style test case that clearly illustrates the issue?

As for your singleton package, you may which to model it after
CGI::Application::Plugin::Session, which does this successfully:

http://search.cpan.org/src/CEESHEK/CGI-Application-Plugin-Session-1.02/lib/CGI/Application/Plugin/Session.pm

   Mark


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>