Wednesday, May 18, 2016

MongoDb Data is updated after your session end

After session end the data is sent to MongoDb but during development phase will you wait for the time when the session will be abandoned?I think you will say "No". So we can do one thing on that time that we can explicitly kill our session.

Steps:
create a simple abandon.aspx page and place it within [Sitecore Instance Name]/sitecore/admin folder and call the abandon.aspx page explicitely like [Sitecore Instance Name]/sitecore/admin/abandon.aspx
Code snippet for abandon.aspx
<% Session.Abandon();%><html><head></head><body><h1>Kill the session</h1>
>
We forcefully Abandon the session.</body></html>
Calling the "abandon.aspx" page


?


No comments:

Post a Comment