# Web applications: Sessions are randomly split into shorter sessions

**URL:** <https://community.dynatrace.com/t/web-applications-sessions-are-randomly-split-into-shorter-sessions/44556>\
**Category:** Troubleshooting\
**Tags:** real-user-monitoring-classic, web-monitoring\
**Created:** [March 20, 2024, 7:30pm UTC](https://community.dynatrace.com/t/web-applications-sessions-are-randomly-split-into-shorter-sessions/44556 "2024-03-20T19:30:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maliborskaya](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@maliborskaya](https://community.dynatrace.com/u/maliborskaya)\
**Post date:** [March 20, 2024, 7:30pm UTC](https://community.dynatrace.com/t/web-applications-sessions-are-randomly-split-into-shorter-sessions/44556/1 "2024-03-20T19:30:00Z")

</div>

When [user sessions](https://docs.dynatrace.com/docs/shortlink/user-session) of your [web application](https://docs.dynatrace.com/docs/shortlink/web-applications-landing) are randomly split into shorter sessions, ensure the following.

- If you configured the cookie domain manually, make sure that it does not overlap with the cookie domain of another application. For details, see&nbsp;[Configure the RUM cookie domain for web applications](https://docs.dynatrace.com/docs/shortlink/cookie-domain).
- Make sure that your firewalls and proxies let RUM cookies pass through. See&nbsp;[Firewall constraints for RUM](https://docs.dynatrace.com/docs/shortlink/rum-firewall)&nbsp;for details.
- If you configured your infrastructure to add the&nbsp;`HttpOnly`&nbsp;attribute to&nbsp;`dtCookie`, remove this attribute; it is not supported for RUM cookies. See&nbsp;[Cookies | Secure cookies](https://docs.dynatrace.com/docs/shortlink/cookies#secure-cookies)&nbsp;for details.

Also, refer to&nbsp;[Web applications: Sessions are not correctly tagged or metadata is missing](https://community.dynatrace.com/topic/239375)&nbsp;and&nbsp;[User session timings](https://docs.dynatrace.com/docs/shortlink/user-session#user-session-end-web-apps) to learn when a user session ends for a web application.
