Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6940693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:47:08+00:00 2026-05-27T12:47:08+00:00

I have a several site collections in the same web application and I need

  • 0

I have a several site collections in the same web application and I need to handle events when user goes from one site collection to another. I need it for specific actions, like setting “lcid” cookie for changing default language of site and claims values to user properties mapping.

Currently I’m using custom HTTP module, which handles all PostAuthorize web application requests and checks current user and site collection, holds last visited site for each user in collection and fires a custom event for subscribers, when detects transition between site collections.

But I think this approach slows down performance of web application. And from logs I see that there are to many PostAuthorize requests even when user simply clicks a link to page in other site collection. Also, in similar cases sometimes there is a series of requests to “next” site collection, then to “previous”, and then again to “next”. Also there are some issues with SharePoint Designer (can’t edit page) become when this module is active.

Could you give me a advice with better approaches for this task? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:47:08+00:00Added an answer on May 27, 2026 at 12:47 pm

    1 way is using a hidden control and cookie.
    Keep a hidden control in all the masterpage of all the targeted sitecollections.
    This control will check the current site collection url and save it in a cookie. Possibly in the same cookie where you are storing lcid.
    From next load onwards it will try and match the url in the cookie and the current site collection url. If different call the code you want to execute and update the url in the cookie.
    This will be much lighter on performance than an httpmodule.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So, you're writing a web application and you have several areas of the site
I'm beginning work on a web application that will have several distinct user types,
I have several pages of my web application done. They all use the same
I'm part of a team building an ADO.NET based web-site. We sometimes have several
I am working on a web site with several other developers and we have
I have a pretty large site and every page is built from several included
We have a Site Collection with several Team Sites. Each Team site has a
I have several domains that point to the same site, some of them ending
I have several before_filters defined in my application controller to handle requests I don't
I have a solution with several site/web scoped features (SP2010). Id like to deploy

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.