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: 2024-12-13 23:16:17 UTC


README

Author: Fabrizio Branca

See: colinmollenhour/Cm_RedisSession#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>