RE: [Catalyst] Do not save session under certain conditions
Possibly, I'll have a chat with a couple of people. However, it looked from the documentation as though what I proposed was possible. It looked like something could be put to the end action to do something with finalise_session. I wondered if anybody knew exactly what had to be done. Duncan -Original Message- From: Francisco Obispo [mailto:fobi...@isc.org] Sent: 21 May 2012 17:31 To: The elegant MVC web framework Subject: Re: [Catalyst] Do not save session under certain conditions 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@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: fobi...@isc.org Phone: +1 650 423 1374 || INOC-DBA *3557* NOC PGP KeyID = B38DB1BE ___ List: Catalyst@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/ ___ List: Catalyst@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/
[Catalyst] Do not save session under certain conditions
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@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/
Re: [Catalyst] Do not save session under certain conditions
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@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: fobi...@isc.org Phone: +1 650 423 1374 || INOC-DBA *3557* NOC PGP KeyID = B38DB1BE ___ List: Catalyst@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/