@johnw65 I don’t really know what the problem is you’re trying to solve? If a user is picking a fiscal year and division to filter some resource, then that should have its own URL (either different path, or query string parameters). That way you don’t need to do this weird session tracking stuff. The user just sees what they’ve requested in that tab.
Track Multiple Sessions for an User
I have an application in which you can select a fiscal year and division. However, if an user log in again on another browser tab , I want them to view record for a different fiscal year/division.
So I've tried saving sessionid, fiscal year, division, and user to a table for that particular login. However, the sessionid changes at each request. What is the best way to track user, fiscal year and division information for each login. Thank you.
@johnw65 What are you trying to save to the session though if a user’s just picking a completely different fiscal year in a new tab?
There is no issue here. This is how web pages work. Each request is stateless.
- User logs in on Tab A and selects a fiscal year and division. URL is updated (i.e. query string added:
?fiscal_year=2020&division=ABC) and shown results for that fiscal year and division. - User logs in on another tab, they’d just do the same: select a fiscal year and division, URL is updated and they’re shown results for fiscal year and division they selected in that tab.
I don’t understand what you want in the session if a user is wanting to view two different result sets in two different tabs?
Please or to participate in this conversation.