[Catalyst] Session unexpectedly expiring

Jeff Chimene jchimene at gmail.com
Mon May 21 04:13:33 GMT 2007


Thomas L. Shinnick wrote:
> At 08:20 PM 5/20/2007, Jeff Chimene wrote:
>> Hi,
>> I'm trying to figure out why my sessions are expiring in
>> script/xxx_cgi.pl but not script/xxx_server.pl
> [snip]
>> I'm using the Session, Session::Store::FastMmap,
>> Session::State::Cookie plugins.
>
> I've not used it, I'm guessing, and I'm an idiot, but isn't this
> likely permissions problems, between running standalone vs. running
> under Apache?  Any chance the backing storage file is not available to
> Apache processes?  Peeking at the docs:   
>     storage
>          Specifies the file to be used for the sharing of session
> data. ...
>         Note that the file will be created with mode 0640, which means
> that
>          it will only be writeable by processes running with the same
> uid as
>          the process that creates the file.  ....
>
> Try deleting the backing file before re-running under Apache?
Good catch. Apache (or script/aic_server.pl) refuses to honor a request
if the working storage file created by the other HTTP server exists. I
couldn't even get started w/o a preliminary "sudo rm -r /tmp/aic" So,
although that's /a/ problem, it's not /the/ problem.

Cheers,
jec



More information about the Catalyst mailing list