Iis - One Application, Different Domains: How To Preserve Sessions

Mar 18, 2010

I have an application with different sections. Each section is accessed through a domain. Example:

[URL] I need to preserve the session when the user navigates from one to another URL. The application is the same in IIS. How to accomplish that?

View 5 Replies


Similar Messages:

Web Forms :: Preserve The Session Object While Redirecting Between Domains?

Oct 16, 2010

In my app. I redirect user from one domain to another and I need to preserve the session object while redirecting between domains.

I need to be able to read session key/value that is created under different domain, for example -

While in domain A.com:

create session variable - session("myASPString") = "Test string"

redirecting to domain B.com

While in domain B.com:

dim k as string = session("myASPString")

right now k = Nothing...

How can I preserve the session object between different domains ?

View 1 Replies

MVC :: Multiple Domains In Single Application

Aug 25, 2010

I want to use my asp.net mvc application with multiple domains (maybe of hundreds),

so I have created custom Route class that matches requests including domain.

Each domain could has different routes, so the number of routes in RouteTable can be huge

(eg 500 domains, each 20 routes = 10000 routes in RouteTable).

I am considering how it will be efficient?

I have an idea to replace RouteTable.Routes (of type RouteCollection)

with custom one (of type Dictionary<string, RouteCollection>).

But how I can override default route matching mechanism with my custom mechanism which will be two step:

1) retrieve RouteCollection from dictionary based on domain name

2) retrieve specyfic Route object (standard route matching mechanism)

How can I do this?

View 4 Replies

C# - Remove All References To A DLL Across All Application Domains?

Mar 24, 2010

I have a web application that dynamically loads assemblies based on database configuration entries to perform certain actions (dynamic plugin style architecture).The calls to the objects are in a Factory Pattern implementation, and the object is cached (in a static dictionary<> within the Factory) as the calls can be made many thousands of times in a minute.The calls to this factory are made from both the main web application and a number of webservices, some in different assemblies/projects.When I need to update one of these DLLs, I have to recycle IIS to get the DLL released.As this has an impact on another application on the server, I wanted to know if there was a way I could release the DLL without restarting IIS?

View 3 Replies

Preserve Session Variables In Web Application After Build?

Nov 15, 2010

Every time I build my web application, my session variables are lost from before the build. Is there anyway to preserve session variables during the build?

View 3 Replies

Web Forms :: Preserve DataTable Across PostBack In Application

Feb 18, 2013

In asp.net(C#) using a popwidnow i am to holdĀ  some values in dummy table after that dummy table's value and rest form values needed to be added in database. How to proceed with that?

View 1 Replies

Test Multi Tenant Application With Support For Multiple Domains

Mar 30, 2010

we are building a multi-tenant application, which will support that each tenant can have a unique top level domain, the application is build using the asp.net 3.5 and SQL servr 2005, while each tenant will have different database. I have seen a number of questions about the similar applications on the StackOverFlow, but none of them is related to the Testing, I want to know is how one can test the application in a development environment, specially How can we test that each customer connects to his own DB based on the URL. how can we emulate different domains on the local system. like [URL] and [URL]all goes to dev machine's IIS.

View 1 Replies

C# - How To Share Sessions Between PHP And ASP.net Application

Mar 30, 2010

My company took some old php application over. Due to our preference to ASP.net and to the lack of any documentation from the previous developer, we do not want to spend much resources on developing in PHP. For implementing new features, we will create an Asp.net application that has the same look to the user. We want to develop a kind of 'coexisting' web application. Therefore we must share sessions between an PHP and an Asp.net webapplication project, because there is a usermanagement involved with an existing MySQL database.

(e.g. link 'A' directs to the PHP website, and link 'B' directs to the asp.net application)

How can we share the session between and PHP and an asp.net application?

And does anyone have a hint for this 'coexisting' thing, that might be useful in development?

View 5 Replies

Visual Studio 2008 - Test Multiple Domains Using Web Application Development Server?

Mar 25, 2010

I am developing a single web application that will dynamically change its content depending on which domain name is used to reach the site. Multiple domains will point to the same application. I wish to use the following code (or something close) to detect the domain name and perform the customizations:

[code]....

I would like to test the functionality of the above using the ASP.NET development server. I created mappings in the local HOSTS file to map [URL] to 127.0.0.1, and [URL] to 127.0.0.1. I then browse to the application with the browser using [URL] (etc).

When I try to test this code using the ASP.net development server the [URL] always says localhost. It does NOT capture the host entered in the browser, only localhost.

Is there a way to test the URL detection functionality using the development server?

View 1 Replies

C# - How To Handle NHibernate Sessions In WebForms Application

Jul 16, 2010

I see there are 2 possible scenarios as to the session handling:

Open one single ISession per request. Open it at request start and close it at request end.Open one ISession per conceptual "unit of work". Many sessions are created for a request.

The approach #1 is the one I'm doing now. I'm a little bit worried about it because, although it works, it's a little bit difficult to debug. For instance, I have an object not being saved (even though I ordered it to) and I'm having trouble debugging since there's a LOT of things happening during a complete request life-cycle.

The approach #2 seems to be the standard best-practice (not sure about ASP.NET) and I'm sure it's pretty easier to debug. The problem I see is about inter-session communication. For instance: My Page class holds a reference to the User, which is a persistent object. Many of the operations receive the user as parameter. As the user belongs to a different session, I can't pass it as a parameter.

I'm biased to #2, but I don't know if it's the best practice, nor how to deal with cross-session object.

View 4 Replies

Managing NHibernate Sessions For Multi-tenant Application?

Oct 15, 2010

I have scoured the web and have yet to find and example that matches my requirements.

What I have is an existing multi-tenant asp.net application where all users authenticate against a single SQL Server database. This database also contains several other settings type data that is used within the application. Each client after authentication, utilizes thier own SQL Server database for data storage, for isolation purposes. Essentially all of the client database are identical and reside on the same server, but reside on one or more servers as well.

The application is currently written in asp.net 2.5 framework and utilizes the Micrsoft Practices Enterprise Library for DAL. Wnd we are looking to migrate to 4.0 and implement NHibernate to replace the MPEL.

I have implemented a solution already using NHibernate and the 4.0 framework, so I am familar with the concepts. I found the resources for my current session manager here as a matter of fact. But that application only had a single database, so not much too it.

The implementation is essentially what you see here:

[URL]

The other solutions that I have seen multiple config entries and/or files to manage this, but that is not desireable, since we may add new clients frequently and all of the connection information is already maintained in the authentication database.

[code]....

View 1 Replies

Web Application Framework Provide Support For Cookieless Sessions?

Mar 22, 2010

We are programming a new web application framework (Second WAF). I was wondering if we should support cookieless sessions or not. Who use it and who needs it?

View 2 Replies

C# - Control Camera Through Sessions And Application Programming Architecture

May 19, 2010

how to control camera through Asp.net sessions and Asp.net application programming architecture

View 2 Replies

Is It Possible To Recycle IIS Application Pools Without Losing User Sessions

Nov 25, 2010

We're currently deploying code to live pretty reguarly at the moment, but the down side is destroying user session data.

Is there a way of being able to recycle IIS without loosing session data, or is persisiting session state in SQL server or alike the only way?

View 2 Replies

State Management :: How To Pass Sessions Value From Application To Another Irrespective Of Versions

Dec 30, 2010

A value needs to be passed from an asp.net application to another within the same domain. How we can do?

View 5 Replies

Remove All Sessions Once The User Leaves The Application/site Or Closes The Browser?

Apr 9, 2010

Is there anyway to actually remove all the sessions once the user leaves the site/application or when he/she closes the browser?

View 11 Replies

State Management :: Sessions Got Mixed Up When Open Multiple Tab For A Single Application

Sep 10, 2010

We got a problem that Sessions got mixed up when open multiple tab in a single application. We could change the code that do not use session variable in a that level, but a tons of page need to be modified. We need to find a quick fix for this problem. Is any thing we can do in code level to prevent user open multiple tab in a single application? O any thing we can do to keep its own session for a single tab?

View 6 Replies

State Management :: Will Sessions Kill When Application Error Occurs Which Is In Global.aspx

Sep 29, 2010

can you tell Will sessions kill when application error occurs which is in global.aspx ?

ex:

[code]....

View 1 Replies

Using AD To Authenticate To Different Domains?

Aug 2, 2010

So we have been using the same login gode to connect to various domains in asp.net, with and without MVC. The code works. We have a new server, first one to run server 2008 r2, set up with a directory structure similar to one of the ones that has been working. Using forms authentication, I set up in the web.config

<add name="ADConnectionString" connectionString="LDAP://10.1.XXX.XXX"/>
and
<!--<authentication mode="Windows" />-->
<membership defaultProvider="MyADMembershipProvider" >
<providers >
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"
connectionUsername="XXXXBrown.Eric"
connectionPassword="XXXX"
connectionProtection="None"
/>
</providers>
</membership>

It connects to build the membership provider just fine, but when I tryto use the exact same username and password to login on the forms login page (the stock asp.net stuff) it fails to login. same user, same password that's being used to connect with the membership provider. If I change the password in the web.config, I get an error that it's incorrect, so I know that the membership provider is getting connected with those credentials. What I can't figure out is why can't I use the same credentials to login? I've checked:

The user is not locked.

the user is not set to change password on next logon.

The user is not expired.

View 1 Replies

How To Redirect Different Domains To Website

Jun 15, 2010

I want to redirect different domains which I have to my newly created website using dotnetnuke. As it is currently working on this site [URL](when user type thescripts.com it redirects user to [URL]

View 2 Replies

Different Domains Point To Different Project?

Feb 26, 2011

Question, I have a few asp.net c# projects... but I only use one webhosting to host all the projects. My question is,

Is it possible for me to register like 2 domains and point each domain to 2 projects within that web host?

For example:

Http://mysite1.com will point to the "../project1/default.aspx"
http://mysite2.com will point to the "../project2/default.aspx"

View 7 Replies

Cookies Over Multiple Sub Domains Except One?

Apr 21, 2010

So I know you can share your cookies across subdomains eg. staging.mysite.com and www.mysite.com etc by setting the domain of the cookies to ".mysite.com"

BUT, is there a way to share across all the sub domains EXCEPT one. e.g. the cookies will not persist on images.mysite.com?

View 1 Replies

Robots.txt With One Site But Two Domains?

May 6, 2010

I have a website which has two domains added. Both domains point to the root of the website. Is it possible to alter the robots.txt so that one of the domains doesn't get crawled, while the other still does?

View 1 Replies

Sharing Authentication On Different Apps On Different Sub - Domains

Jan 19, 2011

I have 2 applications. One on asp.net webforms [URL] which should provide authentication, user logs in and I can use the cookie to authenticate on my asp.net mvc app located at [URL]. All I'd like to do is able to access the cookie so I can get the userId that was stored in it using the FormsAuthentication.

They use normal authentication provided by microsoft;

<authentication mode="Forms">
<forms domain="test.com" loginUrl="Default.aspx" protection="All" path="/" requireSSL="false" timeout="45" name=".ASPXAUTH" slidingExpiration="true" defaultUrl="Default.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false"/>
</authentication>

This cookie should be accessible to any submain on [URL] right?

View 2 Replies

Web Forms :: Multiple Applications In Different Domains?

Mar 24, 2011

I have several applications in different domains with the same code, how feasible that through the admin domain [URL] read the file. aspx.

If I upgrade an application, I copied every current updates on all domains.

I could use to copy the file only once on the server [URL] and in all domains, the update fixes.

View 2 Replies







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