microsoft / microsoft/ApplicationInsights-JS
How do we reset or update the ai_session cookie every time the user login
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 685
- Forks
- 261
- Avg merge
- 21h 33m
- Merged PRs (30d)
- 5
Description
Copied from #1008
How do we reset or update the ai_session cookie every time the user login? I am totally new to this and am not sure where I need to do this?
tried
appInsights.context.session.id = guid.toString();
@MSNev
You almost have it, this should do the trick
appInsights.context.session.id = guid.toString(); appInsights.context.session.update();
@jvrakesh
It complains about the property update does not exists. am I missing something?
You almost have it, this should do the trick
appInsights.context.session.id = guid.toString(); appInsights.context.session.update();
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue only identifies the appInsights.context.session.id entry point and a missing session.update() method; no repository file or test is named. Start by checking the session API implementation and its documentation to determine whether login-time reset is supported. Done means the supported behavior and any required API change are clearly established and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100