Skip to content
Discussion options

You must be logged in to vote

By default, the session life-cycle is bound to the SDK life-cycle (typically bound to the application life-cycle). However, you can create arbitrary session bounds by turning off auto-session-tracking (sentry_options_set_auto_session_tracking()) and starting and ending sessions manually (sentry_start_session() and sentry_end_session()).

We currently only support one global session, so sessions per request in a server application are impossible. However, you could restart (sentry_start_session() ends the previous session first) the session in regular intervals and keep it connected via a consistent user ID (for a particular deployment environment).

But, to be clear: even if your applicatio…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by supervacuus
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants