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 6055727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:17:48+00:00 2026-05-23T08:17:48+00:00

Our site has a DropDownList for country and a DropDownList for language. when a

  • 0

Our site has a DropDownList for country and a DropDownList for language.
when a combination of those is clicked, we redirect the user to a country/language specific url, like en-us.mysite.com

the redirect happens in the ButtonClick in a user control (the UserControl is place in a MasterPage) but when the user gets redirected, the session variables are cleared when we check them in the global.asax ( in the request for the newdomain)

this happens both for true and false for the ‘responseend’ parameter in the Response.Redirect function.

is this by design?

(this is on localhost by the way, with the subdomains specified in the hosts file on my machine)

  • 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-23T08:17:49+00:00Added an answer on May 23, 2026 at 8:17 am

    The session is cleared because the cookie tracking the session is lost, since you are crossing domains.

    So yes – it’s by design. Not session design, but cookie-design.

    But i believe you can allow the cookie to be shared across multiple subdomain’s, like so:

    Response.Cookies["domain"].Domain = "mysite.com";
    
    Making it available to:
    

    en-us.mysite.com

    and

    en-au.mysite.com
    foo.mystie.com
    etc
    

    But that won’t solve your problem, since you have no control over the ASP.NET Session cookie.

    So you will have to implement your own custom session mechanism, which i haven’t done so can’t really provide much help with.

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

Sidebar

Related Questions

our drupal site has some user specific content. When we enable page caching the
There are 3 authors in our company blog, each author has own site url
On our site http://www.viva.org/learn.aspx the Like Box plugin has recently stopped showing the Stream.
Our intranet site has an unusual set of requirements. It functions like a multi-page
Our site has multiple wizards where various data is collected over several pages, and
Recently our site has been deluged with the resurgence of the Asprox botnet SQL
Throughout our site there's a common model, let's say Video, that has a number
Our team has built a site using Sharepoint and a few custom webparts. We've
Any given article on our site has the meta tags for title, description, image,
Our site http://m.sa2010.gov.za has a simple menu structure that relies on floating divs to

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.