Forms Authentication, 2 Applications Sharing 1 Login ?

May 11, 2010

I have 2 almost identical asp.net (vb) applications. 1 Development and 1 Production.

They use forms authentication that is configured to run in SQL server. Both apps use the same aspnetdb database but have different application names.

The problem I have is:I have an Identical login for each app (same username, same password), but If I change profile information for that user in the development app, the changes are reflected in production app. This isn't what I want.

View 2 Replies


Similar Messages:

Sharing Data Between Two Web Applications?

Oct 14, 2010

I have a web application (MainApplication) where many of the pages contain a custom Web Control that looks for some content in a cache. If it can't find any data within the cache, then it goes out to a database for the content. After retrieving the content, the Control displays the content on the page.

There is a web application (CMS) in a subdirectory within the aforementioned web application. Users use this CMS to update the content pulled in by the MainApplication.

When a user updates some content using the CMS, I need the CMS to clear the relevant portion of the cache used by the MainApplication. The problem is that, as two different web applications, they can't simply interact with the same static cache object.

The ideal solution would be to somehow share an instance of a cache object between both web applications.

Failing that, what would be the best (performance-wise) way of communicating between the two web applications? Obviously, writing/reading to a database would defeat the purpose. I was thinking about a flat file?

View 3 Replies

MVC :: Sharing The Same Users DB For Several Applications DB

Feb 14, 2011

I begin with MVC and this technology is very efficient !

I would like to create several applications mapped with a common applicaton Users Accounts. The aim is to isolate logical parts. The problem is always the same : how to communicate easily between users db and appli db ? Do I continue to use my poor View mechanism from SQL Server (db1.Users.UserId inner join db2.Users.UserId) or is it a better way with super MVC?

View 1 Replies

Architecture :: Sharing Data Between Two Different Applications

Feb 17, 2010

I have to different .Net applications running simultaneously. Assume both are windows / web applications.When I update some data in application A

correspondingly data in application B must be updated.

View 3 Replies

Sharing Resource Files Between Web Applications?

Jan 26, 2010

I have multiple projects that need to share resource files (.resx) Suggestions have been made to move resource files to a separate assembly and have web projects reference it. Is there an example of how to do this?

Do I create a new Class Library project and move App_GlobalResource folder inside of that? I don't think that will work because code classes that are generated for resource files are marked as 'internal' which means that they can not be accessed outside of this assembly.

View 1 Replies

Sharing Cookies Across Different Domains And Different Applications?

Jan 24, 2011

Is there a way to share cookies across different domains and different applications (classic ASP and ASP.NET)

View 4 Replies

State Management :: Cache Sharing Between Applications

Jul 30, 2010

Is it possible to share a cache between multiple ASP.NET applications? The apps may reside on different servers. How can one achieve this requirement?

View 1 Replies

State Management :: Sharing Session Between Applications?

Oct 18, 2010

I would like to share the session variables between 2 applications. basically I have a website and in there I have 2 applications and want to share the session object betwen the two. Is there a way to set something in web.config to enable this?

View 2 Replies

State Management :: Sharing Cache Between Two Web Applications In The Same Solution

Jul 7, 2010

I have an asp.net solution in which there are two web application projects (client website and admin website) and also a class liabrary project in the same solution . In the live production server, the admin web app is within the client app (eg: client site= [URL] and admin site=[URL]). A class (with static variables) in class liabrary is userd to cache data. My problem is that i cannot get the changes to the static cache by one web project reflected to the other (becoz, i think, they seem to load in seperate appdomains).

View 3 Replies

State Management :: How To Disable Session Sharing Among Different Applications With Same Domain

Jul 14, 2010

I have 2 applications App1 and App2 on same domain, both with Forms authentication, each using a different database instance for authentication.

First, I open a browser with application www.mydomain.com/App1 and log on.

After that, when I open another instance of the same browser with application www.mydomain.com/App2 and log on, first browser loses session and goes back to login page.

I need each application on same domain to have its own session so that both can stay logged on.

View 2 Replies

State Management :: Sharing The Session Variables Between Two .net Applications Using SQL Server Mode?

Sep 18, 2010

I have two different IIS applications within the same domain(let us say www.mydomain.com) , both of these applications use the same database instance(same connectionstring), now what I want is that both of applications can see each sessions variables , can SQL Server session state mode helps in this case? Did someone try that before? Is there any other way to share the session variables?

View 3 Replies

Sharing Forms Authentication Between A Website And A Web Application?

Aug 10, 2010

Previously, I have implemented two separate ASP.NET Web Applications, one as a virtual application in a subfolder of the other, which successfully shared forms authentication as described at [URL]

(basically, setting up identical <forms> sections in the Web.config, and keys in the <machineKey> section)

Now, I am trying to do something similar to get BlogEngine.NET (which is a Web Site, not a Web Application) to work sharing forms authentication with a Web Application of mine. I have tried both putting it as a virtual application in a subfolder, and setting it up as a separate IIS site (same domain name, different port number), but I can't get the authentication to work at all: when I go to the blog while logged in to my Web Application, Page.User.Identity.IsAuthenticated is always still "false".

I'm really not sure how to even start debugging this, since the forms authentication is handled before any of my code runs.

[Code]....

View 1 Replies

Security :: Sharing Forms Authentication Between Framework 3.5 And 4.0?

Nov 4, 2010

We have multiple applications written in 3.5 SP1. Our new application is being written in 4.0. They all reside inside the same domain, and all the other applications share the forms authentication security ticket by setting a machine key, and setting the Name of the forms tag.

Authentication in each application still works, HOWEVER:

* In the 4.0 app, if you log in, and then go to one of the 3.5 apps you are not logged in

* If you log into the 3.5 app, you are not logged into the 4.0 app, but you are logged into all the 3.5 apps

* If you log into the 4.0 app, you are LOGGED out of the 3.5 app even if you were logged in before.

The <machinekey> tag is there and set the same in all apps

The <forms> tag is set up the same in each app except for the LoginURL

The <membership> and <rolemanager> tags are also set up the same in all apps

Is this possible between frameworks? If so, do I need to do something differently? I really would like to avoid porting all the other apps to 4.0, or porting this down to 3.5

View 1 Replies

VS 2010 - Forms Authentication Across Applications

May 14, 2012

I'm using a common <machineKey> to allow two ASP.Net applications to share a single forms authentication ticket (ie. only need to login to one application to access both). My problem is that I only want users in a particular role to have access to the second application. What's the best way to implement this?

I've tried checking the role in Application_AuthenticateRequest() and doing FormsAuthentication.SignOut() if the role doesn't match, but that doesn't get picked up until the second request to the application. I can't redirect from Application_AuthenticateRequest() because that would just create a redirect loop.

View 2 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

AJAX :: Redirect To Login Modal Popup Instead Of Login Page In Forms Authentication

Dec 1, 2010

I have my website in which there are free links and links that require login. Free links open even if the user is not logged in. But in case of links that require login, redirect to login.aspx specified in Web.Config in loginURL tag.

I want some way to override this and show Ajax modal popup (Ajax extender toolkit) with login control for only thos links that require login (not for the free links).

View 5 Replies

Security :: Forms Authentication Across Applications Stopped Working?

Jan 12, 2011

I have a .net 1.1 ASP application (domain.com) which has a .net 2 virtual directory (domain.com/v2) beneath it, both applications run within their own app pool on the same Windows Server 2003 machine running IIS 6. The web.config files for both apps are setup for Forms Authentication as described here - [URL]

Users would be directed to the domain.com/v2/login.aspx page which would authenticate for both applications, this configuration has been working fine for the last few years until installing one of the recent Windows 2003 security updates today. Now after authenticating under /v2 users keep getting redirected back to domain.com/v2/Login.aspx as domain.com doesnt see them as authenticated anymore.

which security update would have caused this and if its possible to fix or rollback?

View 4 Replies

Can Login With Forms Authentication And Then Transfer That 'login' To A PHP Application

Mar 7, 2011

Our website runs on ASP.NET v4 and users log in user Forms authentication.

We are considering purchasing a web application that will add to our services. The only problem is that this new website is written in PHP.

We would like users to login to our ASP.NET site and then navigate to the PHP site. The PHP site should notice that users are logged-in though. So we probably need to transfer the ASP.NET SessionID cookie and somehow use that to verify whether or not the user has been authorized.

View 4 Replies

Multiple Applications On A Single Site - Session And Forms Authentication Scope?

Mar 7, 2011

We're using ASP.NET and IIS 6.0. I realise that the definitions of applications, websites and virtual directories are ill-defined in IIS 6, and changed a lot in IIS 7. However, I'm stuck with IIS 6.0 for now.

We have a single web site defined in IIS, and a number of separate sub-sites in Virtual Directories.

The scheme looks like this:-

[URL]

[URL]

site1, site2, ... are virtual directories in IIS 6.0, under the "Default Web Site".

I need to use ASP.NET sessions and forms authentication in most of these sites, and I don't want them to share authentication data or session information at all.

Both the mechanisms currently depend on cookies. However, the cookies created by default use the same name, and have a path of "/" in the browser, meaning the sites' cookies will clash with each other.

Without changing the default name for each cookie, how can I enforce separation between my sub-sites? Do I need to change the virtual directories for IIS 6 "Applications"? Or is there some way in code to enforce a more limited scope for the cookies?

View 1 Replies

Security :: Sharing Login Between Three Websites (application)?

Jul 5, 2010

I have a scenario with three applications:

1) Portal: where user executes login

2) Site1: after login at "Portal" user is able to use Site1

3) Site2: after login at "Portal" user is able to use Site2

I just need to execute a validation in Site1 and Site2, to validate if they (users) did login at Portal1.

Something like (in site1 main page page_load).

{
if (notFromPortal)
{
//redirect to Denied.apx
}
}

How can I do this in a simple way? With cookies? Does somebody have a url with sample?

My security requirements are almost zero. I just wanna prevent that user put a url from Site2 in browser and see a Site2 page.

View 1 Replies

Security :: Share Authentication Cookie Between V3.5 And V4.0 Applications

Nov 6, 2010

I have a bunch of applications that currently share the authentication cookie in v3.5.

We're in the process of upgrading to 4.0 and also upgrading the applications as a whole. I have 1 done, and would love to deploy it. However, as soon as I do, I lose my sharing of authentication cookie in that application.

In each web.config, my machine key is declared. I removed the actual keys to protect the innocent. :)

<machineKey validationKey="..." decryptionKey="..." validation="SHA1"/>
<authentication mode="Forms">
<!-- DEV Server -->
<forms enableCrossAppRedirects="true" loginUrl="Logon.aspx" name=".COOKIENAMEHERE" protection="All" path="/" slidingExpiration="true" timeout="1440"/>
</authentication>

View 1 Replies

Security :: Two Applications Using Same Domain / Common Authentication Possible

Feb 19, 2010

I have a case where i have two asp.net applications, one is hosted on example.com/App1 and the other on /App2.

both applications are password protected using Windows authentication.

App1/default.aspx has a <img src="/App2/somefile.aspx">

Now what happens when i open App1 is that i get the credentials prompt, but because App2 is also protected, the HTTP GET for the img requires me to authenticate, in other words i get two prompts.

Is it possible to do something so that the authentication is for example.com so that both App1 and App2 consider the user authenticated?

View 4 Replies

Security :: Single Authentication For Multiple Applications?

Nov 10, 2010

I have three asp.net web applications

,Second and Third applications are accessed throught the first,So Authentication (form authentication) is happening from the first application only , all are deployed on same IIS with seperate virtual directory

Like

1.Localhost/EmpMananger

1. Localhost/Hr

2.Localhost/Payroll

, I used the same Entires in both <machineKey> and
<forms> Elements in webconfig file of all applications,

Applications are working fine and Page.User.Identity are available in all applications but once loginUrl and defaultUrl entry is changed to actual name other than localhost

Eg: localhost/EmpManager/default.aspx To myserver/EmpManger/default.aspx

the authentication ticket is not available in second and third applicaiton

View 4 Replies

Security :: One Login Page For All Applications?

Apr 26, 2010

we have about 4 web applications in our company with seprated login pages, is it available to have a unique login page and after login let user choose what application he/she needs ?

View 4 Replies

How To Share Authentication Context Between A SharePoint 2010 Site And Applications

Aug 13, 2010

Is it possible to share the claims based authentication of a logged in Sharepoint 2010 user with a separate Asp.net application?

The following article describes how it was done using Sharepoint 2007 and forms authentication through forms auth and sharing machine keys etc however I cannot find any information regarding the external application consuming the claims authentication that is now used in Sharepoint 2010?

View 2 Replies







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