Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
Plugin::Session lazy start
 

Index | Next | Previous | View Flat


des at des

May 23, 2012, 1:58 AM


Views: 289
Permalink
Plugin::Session lazy start

I have an application that uses sessions with a FastMmap store. This
application also includes a custom script (using Catalyst::ScriptRole)
used to perform certain administrative tasks from the command line.

The problem is that Catalyst tries to unlink and recreate the session
cache every time it starts (somewhere in the bowels of MyApp->setup(), I
imagine). This is obviously a bad idea if the application is running,
but it is a problem even if the application isn't running if the session
cache is owned by a different user (e.g. www) than the one that runs the
script (e.g. des).

Is there a way to have C::Plugin::Session (or C::P::S::Store::FastMmap)
initialize the cache on first use instead of at startup?

As an alternate solution, is there a way to have it use a different file
name every time it starts?

DES
--
Dag-Erling Smørgrav - des [at] des

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Subject User Time
Plugin::Session lazy start des at des May 23, 2012, 1:58 AM
    Re: Plugin::Session lazy start billcrawford1970 at gmail May 23, 2012, 2:43 AM
    Re: Plugin::Session lazy start des at des May 23, 2012, 5:12 AM
    Re: Plugin::Session lazy start apv at sedition May 23, 2012, 6:54 AM
    Re: Plugin::Session lazy start des at des May 23, 2012, 7:35 AM
        Re: Plugin::Session lazy start des at des May 23, 2012, 7:51 AM
    Re: Plugin::Session lazy start alexander.hartmaier at t-systems May 23, 2012, 7:42 AM
        Re: Plugin::Session lazy start des at des May 23, 2012, 7:54 AM
        Re: Plugin::Session lazy start apv at sedition May 23, 2012, 7:58 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.