aoepeople/aoe_blackholesession

Will skip creating a real session for bots

1.0.0 2016-08-15 07:44 UTC

This package is not auto-updated.

Last update: 2020-11-20 03:59:13 UTC


README

Author: Fabrizio Branca

See: https://github.com/colinmollenhour/Cm_RedisSession/issues/91

Bots (including load balancers and reverse proxies) will create many sessions that will never be used again. Instead we're detecting them based on the user agent and will skip creating a real session.

Configuration

Add this to your local.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<config>
    <global>
        [...]
        <aoeblackholesession>
            <bot_regex><![CDATA[/^elb-healthchecker/i]]></bot_regex>
        </aoeblackholesession>
        [...]
    </global>
</config>