Avatar of jackjohnson44
 asked on

sharepoint session id

I am storing some user settings for a SharePoint site in a list.  I want to persist these while the user is in an active session, but remove them when they come back.  If this was asp, I would simply store the session id and compare it to the current session id.  I don't necessarily need a session id, just a way to determine if they are a return visitor.  I don't want to have to enable session state if this will slow down the app.  How should I handle this?
Microsoft SharePoint.NET ProgrammingASP.NET

Avatar of undefined
Last Comment
Ted Bouskill

8/22/2022 - Mon
Ted Bouskill

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

I wasn't too clear on my description.  I only need to know if a user left and came back.  If this was asp.net I could put something in the session_start code.  Is there something like that for SharePoint?  I don't need sessions or cookies.  I am just using this as an example.  I could easily write code that writes to a database a time stamp for the last page view of the user.  If the current time - last page view was greater than 20 min (just an example), I would know that the user left and came back.  Both of these examples require a lot of overhead.  I was thinking that SharePoint would have something built in that I could leverage.
Ted Bouskill

Have you looked at the usage metrics that are built in?

No.  I don't see where you are going with that.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Ted Bouskill

The usage metrics can show multiple visits.  I'm still not clear about why you want to detect that they left and came back.  Can you give more information?