17 votes

How do I set session timeouts in Sitecore?

There are potentially 3 places in the web.config to modify to extend session timeout: <!-- AUTHENTICATION CLIENT SESSION TIMEOUT Specifies the number of minutes before Sitecore considers user ...
  • 1,697
16 votes
Accepted

Engagement Plans: Why is a user not added to an engagement plan until the session of a user is timed out?

This is because the user is not flushed to MongoDB before SessionEnd. There are various reasons for this1, one being that you want to minimize the writes to MongoDB. If you need to do something ...
10 votes
Accepted

Which pipeline should I patch:after my new processor so that I have access to Context.Session

You actually need to use a completely different pipeline: httpRequestProcessed. This pipeline executes after the session has been initialized. The example below is taken from this blog by Brian ...
  • 3,273
10 votes
Accepted

Unable to serialize the session state. Sitecore.ContentSearch.SearchTypes.SearchResultItem

Background What the error message means is that an object of type SearchResultItem could not be serialized as part of a session that is saved to a session store. There are two types of sessions used ...
9 votes
Accepted

Engagement plans: Progressing from one state to another is taking significantly longer than the specified timeout

Automation worker running interval The automation worker is the agent that processes automation state changes with a certain interval. The first thing you should check is whether the automation ...
8 votes

Content delivery session times out in 1/2 minute with MongoDB session provider

I think your sessions are being flagged as "robot". The most common cause for this, is forgetting to include VisitorIdentification on your main layout or main View file. Webforms: <sc:...
  • 24.6k
7 votes
Accepted

Redis Session Manager

Nick Hills started a project to enable Redis session state. You can find the details here: http://blog.boro2g.co.uk/sitecore-redis-sessionstate-provider/ https://github.com/boro2g/Sitecore-Redis-...
  • 1,693
6 votes

Performance problems with the Sitecore SQL Session Provider

You've seen the "Optimize SQL Server Performance" section (Not Applicable to Azure SQL) at https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/xdb/session_state/...
  • 1,289
5 votes

Azure Web App Redis timeout exceptions when under load

We managed to solve this issue with the help of Sitecore and Microsoft: Solution: Increase the min worker thread pool to xxx (where xxx should be greater than busy value on log) Increase PollingTime ...
  • 2,253
5 votes
Accepted

Contact (guid) could not be locked in the xDB

I have solved this issue. It was due to following the recommended enable/disable configuration guide (https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/xdb/...
  • 4,083
4 votes

Engagement Plans: Why is a user not added to an engagement plan until the session of a user is timed out?

This is because xDB data is not committed until after the user's session ends. This link contains a little more information on why that is: https://doc.sitecore.net/sitecore_experience_platform/...
  • 3,235
4 votes
Accepted

Sitecore xdb robot detection?

Have you read the documentation of robots detection on the Sitecore doc-Portal? https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/xdb/robot_detection/...
4 votes
Accepted

Sitecore SessionState provider MongoDB or SQL

We are using MongoDB extensively at present, rather than SQL, for Azure deployments. The number of MongoDB collections required for Sitecore's xDB means we run our own MongoDB server cluster as it's ...
4 votes
Accepted

Sitecore xDB logout contact and continue browsing as anonymous

DISCLAIMER: This is possible, yet untested and is a very non-standard way of using xDB. It may potentially lead to strange errors and you'll have no idea where they are coming from or how to fix them. ...
4 votes

Session object cannot be deserialized

As you pointed out on your comment, this can be resolved by adding the missing types Sitecore.Analytics.SessionSerialization.config. You can see Sitecore comes with a bunch of these by default. Maybe ...
  • 1,752
3 votes
Accepted

Exception on a CM server: The session ID is longer than the maximum limit

Defect explanation The problem is not the SessionIDManager. It enforces a maximum ID length of 80 characters and you shouldn't attempt to overcome this limitation, since some session state providers ...
3 votes

AcquireRequestState causing slow page load times

Session locking only affects requests from a single source. It's more evident in load testing than it is in real world situations, since most of the traffic is coming from a single source, or ...
3 votes

Sitecore virtual user vs Session

We have a similar requirement (1/2 million named users) and went the method of sitecore virtual users, and then assigning a specific sitecore role when they are authenticated. You can then authorise ...
  • 5,110
3 votes
Accepted

Configuring private sessionState database raises runtime error:

It is a permissions issue. You've not shared your actual connection string sharedsession but the end result will be the same, the account you're using to connect to SQL does not have sufficient ...
  • 24.6k
3 votes

Session_Start not called unless browser is closed

Hmm. You don't mention if you're using InProc or mongo session states. But it might not be relevant. Sitecore overrides the default ASP.NET SessionIdManager manager - not entirely sure why. What is ...
  • 24.6k
3 votes

Engagement Plans: Why is a user not added to an engagement plan until the session of a user is timed out?

In previous incarnations, when the Experience Platform was the DMS it was all very chatty to the SQL server; for busy sites it really hammered it and we saw a few customers just turn it off. It's ...
3 votes
Accepted

Session State options for Sitecore 6.5 Update-1 w/DMS?

For a 6.5 update 1 using DMS you are unfortunately out of luck. In 6.5, you cannot load balance the CM servers (you dont need it but just stated for completeness) In 6.5 versions before update 4 you ...
3 votes
Accepted

Content delivery session times out in 1/2 minute with MongoDB session provider

I don't believe robot detection is related to your problem. As you correctly suggested in the comments, changing session state provider should not affect robot functionality and the way it overrides ...
3 votes
Accepted

Shared Session State configured as Private

From the sitecore site: Important You must configure both private and shared session states. You can choose to use the same session provider for both but to ensure that the system can distinguish ...
  • 17.9k
3 votes
Accepted

Sitecore personalization rule "goal was triggered during a past or current interaction" not being triggered

After spending some time with the question asker, we determined the root issue. The root problem statement was that Personalization wasn't occuring unless the user in the above example refreshed ...
  • 14.4k
3 votes

Virtual user custom properties missing on CD server

Virtual user information is saved in Session. By default Sitecore configuration doesn't share sessions information between few CD servers. That is why one CD server doesn't know anything about logged ...
  • 3,486
3 votes
Accepted

User Interaction is not storing on MongoDb - Once browser is closed

Closing the browser will not end/expire the session. That is done after user is idle for 30 mins time by default. But you can adjust that from adjusting "timeout" parameter of the following tag in ...
  • 3,717
3 votes

What are differences between Sitecore Custom Property(Context.User.Profile) and Session?

Context.User.Profile Custom properties from Context.User.Profile are stored together with user profiles. It may vary between Sitecore versions where this data is stored and how it's accessed but in ...
  • 20.9k
3 votes

Sitecore disable session for a specific page

You dont need to disable session to not store a page in Mongo/xDB. Just disable it in the content editor. Analyze > Attributes > Disable Analytics for this page
3 votes
Accepted

Sitecore session expiration with multiple CDs

I agree it is confusing, but this article is only applicable to the scenario when you want to separate Content Delivery and Expired session processing roles. Your desired setup (2 CDs and no dedicated ...

Only top scored, non community-wiki answers of a minimum length are eligible