Cache For Subdomains - Users See Their Subdomain Name In Different Subdomains?

Jan 31, 2011

There are subdomains: sub1.domain.ru, sub2.domain.ru, sub3.domain.ru, sub4.domain.ru. On default page there is a code:

protected void Page_Load(object sender, EventArgs e)
{
string subdomain = Cache[key] as string;
if (subdomain != null)[code]...

Will users see their subdomain name in different subdomains(sub1.domain.ru, sub2.domain.ru, sub3.domain.ru, sub4.domain.ru) ?

View 1 Replies


Similar Messages:

State Management :: Authenticating Users In Multiple Subdomains?

Aug 31, 2010

I have a main website say www.main.com which is developed in asp.net. We have used forms authetications here.

Now the thing is I have a no of subdomains on the same server say domain1.main.com, domain2.main.com, domain3.main.com etc.

I had put some functionality there. What i want is when i redirect my users to the subdomains user has to log in again.

what are the method where i can preserve the users state in my subdomains also.

View 5 Replies

Set Up Subdomains On IIS 7?

Nov 1, 2010

I have a website sitting on an IIS 7 server: WWW.SITE.COM

I would like to create several sub domains that looks like SUBDOMAIN1.SITE.COM

I created an IIS website and i set the bindings to be http, port 80, the ip address of my server, and SUBDOMAIN1.SITE.COM

and the pyshichal path to a folder under SITE.COM

I restarted my website and clicked on browse, the browser than opened with the address: http://SUBDOMAIN1.SITE.COM

but the website doesn't show.

Do i have to do something with the DNS?

View 1 Replies

UrlRewriting For Subdomains?

Sep 13, 2010

In IIS7 using UrlRewrite module I want to do something likes this. I tried everywhere, possibly this is wellknown problem, but couldn't find any usefull solution.Url "http://tom.mydomain.com" should be read internally as "http://mydomain.com/dashboard?g=tom"I am using ASP.NET MVC, just in case info is required.

View 1 Replies

Configuration :: Subdomains For Each Language?

May 6, 2010

I have a working website with multi language support. Now this multilanguage support its based on three flags (one for spanish, another for english and another for french) and cookies. I stablish a cookie with the current culture. Then I have resource files for each language (default.aspx.resx, default.aspx.en.aspx, default.aspx.fr.resx ...)All working ok.Now I want to change the language system to subdomains. I want es.mydomain.com, en.mydomain.com and fr.mydomain.com, because search engines dont index very well with cookie language system.

I have created three A ZONES (es, en, fr) in the DNS hosting provider. This A ZONES points to the same IP that the WWW ZONE. Even though www.mydomain.com takes the user to the default.aspx of the website, but the other zones not.en.mydomain.com, fr.mydomain.com and es.mydomain.com returns a webpage with the text: BAD REQUEST (INVALID HOSTNAME)I think I have to make some other change in my code (perhaps global.asax).I have done this in PHP web server, but I dont know how to do in a ASP.NET server.I have searched solutions, but I have a lot of confusing information, principally about DNS, but I think that this part its OK

View 6 Replies

C# - Add Static Subdomains To A Website?

May 16, 2010

I would like to create a few static subdomains like:

mycategory.mydomain.com

in a rather small website and would like it to point to the folder:

mydomain.com/mycategory

without showing such redirection in browser address bar.

What is an easiest way to achieve it? I can do it in either IIS settings, asp.net, C# code, etc

there are better ways then creating a few separate Sites in IIS - one for each subdomain.

View 2 Replies

C# - URL Routing Across Multiple Subdomains?

Jul 14, 2010

I find myself in a difficult situation. We're working on an ASP.NET MVC 2 application which is comprised of multiple sections. It is a design goal to have these sections span across several subdomains. Each subdomain will have its own controller.

The challenge is that our hosting provider's control panel allows two forms of redirection for subdomains, and neither of them seem to fit the bill. The choices are:

Redirecting to URL. Choice is given whether to redirect to an exact destination or a destination relative to the request URL. Redirecting to a specific folder in my hosting space.

I'll try to illustrate the intended behaviour. Assuming the default route is {controller}/{action}/{id}, I'd like the URL http://subdomain.welcome.com/a/b be handled by the MVC Application like http://welcome.com/subdomain/a/b.

The URL redirection could solve this problem, except for the fact that the user sees a URL change occur in the browser. We don't want the client to see the redirection occur.

Redirecting to our MVC apps root folder doesn't work at all. The app doesn't pick up the request and a 4xx error gets passed back by IIS.

edit:

In the interest of finding an answer, I'll simplify this a bit. The "redirect to URL" doesn't do what I want so that leaves redirecting to a folder.

If I'm redirecting a subdomain to the root folder of my MVC App and IIS wont pick up the requests, is this a limitation of IIS or my provider?

View 2 Replies

AJAX :: ScriptResource.axd 404 Error Only On Subdomains?

Jan 11, 2010

I have setup my website (ASP.NET 3.5) with AJAX, running with no problems at all.

When I test my website locally and on my main top level domain, there are no problems.

When I'm on a subdomain page, AJAX client side framework fails to load. I observed the problem deeply and found that whenever I'm on a subdomain page, WebResource.axd DOES load but ScriptResource.axd DOESN'T load (returns 404 Not Found error). I think I should modify some entries at web.config file, but I have no idea on what to do?

View 3 Replies

Configuration :: Subdomains Switching Db & Web.config?

Jan 14, 2011

I am running into a unique problem (not easily googleable). This is what I am trying to do:Will be using subdomains: x.abc.com, y.abc.com, z.abc.com, etc.There will be single website hosted at abc.comBased on the subdomain passed (x,y,z,etc.), I need to switch databases and web.configs (appsettings, authentication, authorization info)For ex: If a user goes to x.abc.com, the site will select appropriate db & config settings and forward user to abc.com with db & settings cached/saved for the user session.Is it possible to have one hosted site and multiple subdomains that select appropriate config settings? Reason I need to do this is because credit card processor needs static url for requests and responses.

View 1 Replies

Different Default Documents For Two Subdomains That Go Against The Same Site IIS 7?

Sep 15, 2010

We have two subdomains for the same site, we would like that depending on the visited subdomain the initial page varies. But in IIS the default document setting is based on the web.config so...We know that we could use the http:/subdomain/page.aspx but its a requirement that we use only http:/subdomain in the links

Desired example: Click in link http:/subdomain1.web.com --> http:/subdomain1.web.com/page1.aspx
(our_website/page1.aspx)
Click in link http:/subdomain2.web.com --> http:/subdomain2.web.com/page2.aspx
(our_website/page2.aspx)

View 1 Replies

C# - Create Subdomains For IIS7 Programmatically?

Jan 11, 2011

I'm writing a SaaS app in C#/ASP.NET, hosted with IIS7. I want to create a personalized subdomain for every customer that signs up, i.e. fred.mydomain.com, bob.mydomain.com, each of which will point to the same app, just with a different skin per customer.

How do I create these subdomains programmatically?

View 1 Replies

Php - Implement Single Sign On With SubDomains?

Feb 4, 2010

I would like to know how to implement Single Sign On across subdomains running on a mixture of programming platforms, asp.net and php?

View 1 Replies

Create Subdomains Dynamically Under Domain Using C#?

May 28, 2010

I would like to create subdomains Dynamically under my domain using asp.net ,C#? I can not find good solution for this. What are the things i should do to complete this.

Scenario:

1.user register with site

2.domain name should be: http://username.domain.com

View 1 Replies

How To Manage Multiple Applications On One Hosting With Subdomains

Oct 3, 2010

I want to deploy multiple asp.net applications on same hosting with subdomains. How it should be manged ?

I just created a subdomain and deploy application in its folder; when I tried to access application with subdomain it shows the following error:

An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

View 5 Replies

Configuration :: Navigate Subdomains To Diretories On A Web Hosting.

Nov 13, 2010

Graphic:wap.mysite.com -----------> mysite.com/wap/index.wmljack.mysite.com ------------> mysite.com/jack/index.aspxob.mysite.com ------------> mysite.com/bob/index.aspxjack2006.mysite.com ------------> mystie.com/jack2006/index.aspx

View 4 Replies

Sql Server - Same Website On Multiple Subdomains But Different Databases?

Oct 10, 2010

Consider that I want to create 10 websites in IIS, each of them pointing to the same website on local hard drive, each one running the same code, but on different subdomain.subdomain1.domain.com, subdomain2.domain.com, ..., subdomain10.domain.comHow can I add multiple connection strings in my web.config file and bind each connection string to a different subdomain ?I want to do this because every website will have a different database with different data.

View 2 Replies

Security :: Single Sign On With Multiple Subdomains?

Apr 21, 2010

I have 2 subdomains:

www.mysite.com
store.mysite.com

I followed these instructions: http://www.codeproject.com/KB/web-security/aspnetsinglesignon.aspx

The only thing I don't understand is where to put the cookie code?

[Code]....

Does this go in the LoginControl_LoggedIn event? Application_AuthenticateRequest?

Also, what if I have 2 different domains?

View 2 Replies

Web Forms :: Implement Single SignOn In Subdomains

Oct 21, 2015

I am planning to have 2 subdmains on my IIS server. Example - [URL]. So if someone logs on Portal and if we clicks on the App link, he should be successfully logged into App.

SO basically 1 signin for both subdomains. How to achieve it in ASP.Net 4, C#, VS.Net 2013?

View 1 Replies

C# - Store Session Cookie For Groups Of Subdomains IIS7?

Jan 6, 2011

I have an application running ASP.NET. I have different domains and different sub-domains. I want the domains to share session with their sub domains.

For Example, the following domains access this application:

[URL]

If a user goes to www.example1.com and print.example1.com, I want it to use the same session. If the user were to go to www.example2.com and print.example2.com, I would want it to use a different session than the *.example1.com.

The way I used to handle it was a hack in page_load that works perfectly in IIS6:

Response.Cookies["ASP.NET_SessionId"].Value = Session.SessionID;
Response.Cookies["ASP.NET_SessionId"].Domain = SiteUtility.GetCookieDomain();

(SiteUtility.GetCookieDomain would return .example1.com or .example2.com depending on the url of the request) Unfortunately, this no longer seems to work for iis7. Each subdomain/domain a user goes to, the user gets a new session cookie.

I then found the web.config entry: '<httpCookies domain=".example1.com" />. This works great for sharing session cookie between example1.com subdomains. Unfortunately, this completely screws up session state for *.example2.com.

View 3 Replies

Deployment - How To Manage Multiple Applications On One Hosting With Subdomains

Oct 3, 2010

I want to deploy multiple asp.net applications on same hosting with subdomains. How it should be manged ?

I just created a subdomain and deploy application in its folder; when I tried to access application with subdomain it shows the following error:

An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

View 1 Replies

Interaction Between WCF Service And Sites With Cookieless Session, Different Subdomains?

Dec 11, 2010

I have several ASP.NET sites, hosted on the same domain (different subdomains) and working via HTTPS. I have WCF service, hosted on the same domain. I have a separate state server for sessions.

All sites use cookieless session (if someone asks why - i will reply later, but it's a 'must')

On my sites, I use grid components from Telerik (but actually it does not matter) that ask for data from WCF service and must be filled with this data.

The problems are:

1) I cannot manage to make POST request to WCF service from javascript: for some reason it's always either GET or OPTIONS (no matter if I use Sys.Net.WebServiceProxy invoke or just a plain jquery AJAX request). It happens even if I indicate COOKIE mode, not cookieless. Maybe because of this I am getting "405 Method not allowed" error - WCF is set for POST request, but the site sends GET...

2) I cannot manage to retrieve SESSION from my websites! I tried approach, that I found, but WCF always uses OWN session, instead of 'connecting' to existing ASP.NET session, despite on ASP.NET compatibility mode. I need SESSION to exchange data between my sites and WCF service

3) I don't have idea currently, how to manage security when exchanging data between mentioned ones, in the light of above-mentioned problems...

4) I don't know exactly, how web.config for WCF service should look like in my case, because I've seen tons of different variants, but all for some simple cases.

Would be really appreciated for the help! I'm stuck for 2 or 3 weeks already, far behind the plan, but nothing still works... I can see there are some pieces of info about similar problems, but I'm afraid to miss some small thing - in web.config or method attribute or IIS setting, etc - and f... up everything.

View 3 Replies

C# - Cache Data In Silverlight That Is Used By All Users?

Feb 24, 2011

I am creating a graphical tool in silverlight which reads data from multiple files and database.

i dont want to call the database again and again. i want to retrieve the data when required and keep it safe somewhere so if the user or any other user visits the same page, they can then access the data.

i want to use application state of asp.net Cache["Object"] but in Silverlight? what is the best methodolgy?

View 3 Replies

Cache Page For Anonymous Users Only?

Jan 17, 2010

Is there an easy way to cache ASP.NET whole page for anonymous users only (forms authentication used)?

Context: I'm making a website where pages displayed to anonymous users are mostly completely static, but the same pages displayed for logged-in users are not.

Of course I can do this by hand through code behind, but I thought there might be a better/easier/faster way.

View 1 Replies

Redirect Subdomain To Subfolder Of Another Subdomain?

Nov 15, 2010

What I want to do is take traffic that is going to shop.mywebsite.com and redirect or rewrite (I'm not sure of the terminology) the domain to be www.mywebsite.com/shop. Both shop.* and www.* are separate web applications (nopCommerce and Umbraco respectively) that don't seem to cooperate when I've tried to nest them. Both applications are in a Server 2008 R2/IIS 7.5 environment.

I've searched around stackoverflow and what I've found is a lot of answers to mapping the other direction (ie subfolder to a subdomain) but that's not what I'm looking for as far as I understand the problem.

The end goal is to combine the SEO reputation of the shop subdomain into the www subdomain. I readily admit that I might have this all backwards and am willing to try any suggestions I'm offered.

View 1 Replies

Subdomain Cookie (parent And One Subdomain)

Jan 31, 2010

I have an app with multiple subdomains, subone.parent.com, subtwo.parent.com.

I have a logon page at parent.com/login. When a user logs in I redirect them to the proper domain based on which one they are a member of. This works fine.

FormsAuthenticationTicket ticket = new FormsAuth...
string encTicket = FormsAuthentication.Encrypt(ticket);
var cookie = new HttpCookie(FormsAuthentication.FormsCookieName, encTicket);
cookie.Domain = subone.parent.com
Repsonse.Cookies.Add(cookie)

This properly authenticates the user for subone.parent.com and not subtwo.parent.com. However I would like to do the following.

If the user goes back to parent.com, I would like to know that they are logged in and redirect them back to subone.parent.com.

Is there a best practice for accomplishing this? Or do I have to set another cookie for parent.com?

I'm working in asp.net mvc if it matters.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved