[Catalyst] Do not save session under certain conditions

Francisco Obispo fobispo at isc.org
Mon May 21 16:31:29 GMT 2012


can you get the monitor to initiate a session and re-use it?

That way, you can monitor other portions of the site and not just a no-op URL.


On May 21, 2012, at 8:49 AM, Duncan Garland wrote:

> Hi,
>  
> We’ve got some monitoring software installed which is accessing the home page of my catalyst app every couple of seconds and flooding the sessions table.
>  
> I can recognise the monitor based on the user agent, so I’d like to stop it saving the session. Something like:
>  
> if ($c->request->user_agent =~ m/HTTP-Monitor/ ) {
>   Don’t save the session.
> }
>  
> What’s the best way to do this?
>  
> Thanks
>  
> Duncan
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/

Francisco Obispo 
email: fobispo at isc.org
Phone: +1 650 423 1374 || INOC-DBA *3557* NOC
PGP KeyID = B38DB1BE




More information about the Catalyst mailing list