# HAproxy custom stick

**URL:** <https://discourse.haproxy.org/t/haproxy-custom-stick/2368>\
**Category:** Help!\
**Created:** [April 11, 2018, 8:31am UTC](https://discourse.haproxy.org/t/haproxy-custom-stick/2368 "2018-04-11T08:31:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![next40](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@next40](https://discourse.haproxy.org/u/next40)\
**Post date:** [April 11, 2018, 8:31am UTC](https://discourse.haproxy.org/t/haproxy-custom-stick/2368/1 "2018-04-11T08:31:23Z")

</div>

Dear Friends, i have web application crm, please help to find any ideas for release stick session algoritm  
User access application via url:  
[https://web.somesite.com/48c8155f1470878045eaa01f/1c\_my\_9469\_1/\*](https://web.somesite.com/48c8155f1470878045eaa01f/1c_my_9469_1/*)  
[https://web.somesite.com/account](https://web.somesite.com/account) hash/database name/\*  
then enter db login and password  
if authentication success application set cookie vrs\_session with value 9c18917b-3706-44e0-967d-36e933fcbf94  
 ![sess2](https://us1.discourse-cdn.com/flex016/uploads/haproxy/original/1X/9ce16875a4e603c7b6b494fa01e632be7ef110e8.png)

I need stick client by /48c8155f1470878045eaa01f/1c\_my\_9469\_1/ + vrs\_session or custom cookie this need for calculate unique user sessions per account/database or if possible restrict connection if limit reached. it is possible via HAproxy?
