Apache::Session delete error

[prev] [thread] [next] [Date index for 2004/11/18]

From: Bart Simpson
Subject: Apache::Session delete error
Date: 23:00 on 18 Nov 2004
HI. I've been working on this for over a day now.
Truth is i don't really understand the nature of the
problem. Google give many old results for setgid
problems. If some wise perl programmer could help, i'd
be much obliged. 

I'm getting this error when I call
tied(%session)->delete.

-e:   Insecure dependency in unlink while running
setgid at
/usr/lib/perl5/site_perl/5.8.3/Apache/Session/Store/File.pm
line 106.

Here is relevant 106 area.
if (-e $directory.'/'.$session->{data}->{_session_id})
{
        unlink
($directory.'/'.$session->{data}->{_session_id}) ||
            die "Could not remove file: $!";
}

I saw this on perlmonks and untied my session before
processing the template but that didn't help.

[quote]
If you really want to use Apache::Session rather than
something simpler like MLDBM::Sync, I suggest you
treat it as a hot potato, i.e. create the hash, get
what you want in and out of it as fast as you can, and
get rid of it immediately. Don't leave it hanging
around while you do other stuff.
[/quote]

Thank you very much.


		
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Apache::Session delete error
Bart Simpson 23:00 on 18 Nov 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52