Re: [Cgi-session-user] Are CGI::Session session files removed automatically?
Brought to you by:
sherzodr
From: Sherzod R. <she...@ha...> - 2006-05-29 07:53:16
|
Ron, I never meant find() to be used as an object method, but as a class method, as in CGI::Session->find(). But looking at your code, I think we can re-write find() to work for both cases. If your code works for Justin, I would be surprised (sorry). Sherzod > -----Original Message----- > From: cgi...@li... > [mailto:cgi...@li...] On > Behalf Of Ron Savage > Sent: Monday, May 29, 2006 2:31 AM > To: List - CGI-Session > Subject: Re: [Cgi-session-user] Are CGI::Session session > files removed automatically? > > > On Sun, 28 May 2006 21:47:54 -0600, Justin Simoni wrote: > > Hi Justin > > > CGI::Session->find( \&purge ); > > To get CGI::Session to look in the correct directory, perhaps > replace the above line with: > > require CGI::Session; > my $session = new CGI::Session(undef, undef, {Directory=>'/ > home/myaccount/sessions'}); $session -> find(\&purge); > > > Which is CGI::Session trying to remove files that aren't owned by > > whatever is executing my app. Usually, when I run CGI::Session, I > > Perhaps you get permissions errors because: > o The sessions were created by a CGI app run by the web > server and hence owned by the owner of the web server process > o The sessions are being deleted by you, and you're not the > owner of the web server process > > -- > Ron Savage > ro...@sa... > http://savage.net.au/index.html > > > > > _______________________________________________ > Cgi-session-user mailing list Cgi...@li... > https://lists.sourceforge.net/lists/listinfo/cgi-session-user > > |