Avatar of jackjohnson44
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
ASKER CERTIFIED SOLUTION
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of jackjohnson44
jackjohnson44

ASKER

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.
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

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

ASKER

No.  I don't see where you are going with that.
Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

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?
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo