Typically I would go into Global.asax.cs and add the code to set context language / culture and commerce price group / currency from a cookie (if available) in the session_start event.

I see multiple posts which do not recommend altering global.asax now for Sitecore and use pipelines instead.

I see a pipeline for SessionEnd in showconfig.aspx - but none for SessionStart - would you know where I should add this? I also saw this: https://sitecorejohn.wordpress.com/2008/11/19/overriding-sitecores-logic-to-determine-the-context-language/ but this would execute on every http request.

I could check if session exists and only them execute the code, (as suggested here: https://stackoverflow.com/questions/38308613/sitecore-session-started-pipeline) but it would still run the check on every http request anyhow? Is there a way around this?

1 Answer 1


Turns out, both Sitecore and uCommerce take care of cookies on their own. All i needed to do was set the language / price group in the context when the user triggered this change. The cookie got saved automatically. On starting a new session, both cookies were loaded up automatically by Sitecore and the uCommerce libraries!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.