Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session Recordings Persist for 180 Hours in posthog-react-native #404

Open
1 of 4 tasks
mshaheer-softindex opened this issue Feb 21, 2025 · 2 comments
Open
1 of 4 tasks
Labels
bug Something isn't working question Further information is requested Session Replay

Comments

@mshaheer-softindex
Copy link

Bug description

Session recordings in PostHog for our app are lasting up to 180 hours, which is an excessive waste of resources and should be handled better.

How to reproduce

  1. Use posthog-react-native (3.6.1) and posthog-react-native-session-replay (0.1.8).
  2. Enable session replay and allow sessions to be recorded.
  3. Observe session durations reaching 180 hours instead of expected shorter durations.

Related sub-libraries

  • All of them
  • posthog-web
  • posthog-node
  • posthog-react-native

Additional context

This issue causes unnecessary storage and resource consumption, leading to inefficiencies. A fix to limit session lengths appropriately would be highly beneficial.

Image
@mshaheer-softindex mshaheer-softindex added the bug Something isn't working label Feb 21, 2025
@marandaneto
Copy link
Member

hello @mshaheer-softindex
this should not happen since session id should be rotated if inactive for 30min.
is that Android, iOS, or both?
Can you share the link to a recording? you can email me manoel @ posthog . com
can you upgrade the SDK to the latest version (including upgrading your iOS pods), and test this out again?

Thanks.

@marandaneto marandaneto added the question Further information is requested label Feb 21, 2025
@mshaheer-softindex
Copy link
Author

mshaheer-softindex commented Feb 21, 2025

hello @mshaheer-softindex this should not happen since session id should be rotated if inactive for 30min. is that Android, iOS, or both? Can you share the link to a recording? you can email me manoel @ posthog . com can you upgrade the SDK to the latest version (including upgrading your iOS pods), and test this out again?

Thanks.

This issue occurs on iOS only. I am unable to share the recording. However, I will provide an update once I have updated the packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested Session Replay
Projects
None yet
Development

No branches or pull requests

2 participants