473,883 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Framework 1.1 and Forms Authentication

Hi,

I have different asp.net applications as sub applications within an application and was using Framework 1.0. And I use forms authentication across the applications. In the web.config file of outer application I have

<authenticati on mode="Forms">
<forms name=".ASPXAUTH " loginUrl="Defau lt.aspx" path="/" timeout="20"/>
</authentication>

While in the web.config of the Sub applications I have

<authenticati on mode="Forms">
<forms name=".ASPXAUTH " loginUrl="../Default.aspx" timeout="20"/>
</authentication>

So I was able to access the pages in the Sub applications as long I was authenticated.

Now when I upgrade to Framework 1.1, this does not work. I able to login, but not able to access any pages in the sub application. When I try to reach to any page in the sub application, it simply throws me back to defualt page. For some reason the sub applications are not recognizing the aspxauth cookie.

I would appreciate any response in this regard.

Thanks.

Nov 18 '05 #1
2 1528
Set the name="" to the same name - DONE

Config File <machineKey>
Set the validationKey to the same value in each app
Set the decryptionKey to the same value in each app
(see help file)

NOTE: This will still not allow passing session values back and forth, but
it will allow a user to be authed in two apps. The apps do not have to be
web and subweb either.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ***
Think Outside the Box!
*************** *************** *************** ***
"Dotnet Guy" <Dotnet Gu*@discussions .microsoft.com> wrote in message
news:F1******** *************** ***********@mic rosoft.com...
Hi,

I have different asp.net applications as sub applications within an application and was using Framework 1.0. And I use forms authentication
across the applications. In the web.config file of outer application I have
<authenticati on mode="Forms">
<forms name=".ASPXAUTH " loginUrl="Defau lt.aspx" path="/" timeout="20"/>
</authentication>

While in the web.config of the Sub applications I have

<authenticati on mode="Forms">
<forms name=".ASPXAUTH " loginUrl="../Default.aspx" timeout="20"/>
</authentication>

So I was able to access the pages in the Sub applications as long I was authenticated.
Now when I upgrade to Framework 1.1, this does not work. I able to login, but not able to access any pages in the sub application. When I try to reach
to any page in the sub application, it simply throws me back to defualt
page. For some reason the sub applications are not recognizing the aspxauth
cookie.
I would appreciate any response in this regard.

Thanks.

Nov 18 '05 #2
Thanks Greg.
It works but my session does not time out in 20 min. I have this in each of my apps.

<forms name=".ASPXAUTH " loginUrl="Defau lt.aspx" path="/" protection="All " timeout="20"/>

Thanks in advance.
"Cowboy (Gregory A. Beamer) [MVP]" wrote:
Set the name="" to the same name - DONE

Config File <machineKey>
Set the validationKey to the same value in each app
Set the decryptionKey to the same value in each app
(see help file)

NOTE: This will still not allow passing session values back and forth, but
it will allow a user to be authed in two apps. The apps do not have to be
web and subweb either.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************** *************** *************** ***
Think Outside the Box!
*************** *************** *************** ***
"Dotnet Guy" <Dotnet Gu*@discussions .microsoft.com> wrote in message
news:F1******** *************** ***********@mic rosoft.com...
Hi,

I have different asp.net applications as sub applications within an

application and was using Framework 1.0. And I use forms authentication
across the applications. In the web.config file of outer application I have

<authenticati on mode="Forms">
<forms name=".ASPXAUTH " loginUrl="Defau lt.aspx" path="/" timeout="20"/>
</authentication>

While in the web.config of the Sub applications I have

<authenticati on mode="Forms">
<forms name=".ASPXAUTH " loginUrl="../Default.aspx" timeout="20"/>
</authentication>

So I was able to access the pages in the Sub applications as long I was

authenticated.

Now when I upgrade to Framework 1.1, this does not work. I able to login,

but not able to access any pages in the sub application. When I try to reach
to any page in the sub application, it simply throws me back to defualt
page. For some reason the sub applications are not recognizing the aspxauth
cookie.

I would appreciate any response in this regard.

Thanks.


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4851
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms Authentication set up and it worked just fine. Then I realized that I needed to have some pages unsecure. I then created 2 directories. One named Secure and the other named Public. I placed my web.config file in my
1
2011
by: JC | last post by:
I have several applications that use forms authentication and they are currently setup to use a single login page. Everything works fine under v1.0 of the framework and everything works fine if I have all applications running under v1.1. However, I need the login page and a few apps to be running under using v1.0 with other applications running under v1.1. Now my authentication cookie is no longer being accepted anywhere other than by...
2
2519
by: Eric | last post by:
I am trying to build an app where the stuff in the root directory is open to all, but anything under the Restricted directory requires you to login and I want to use Forms to do it. I'm having trouble getting the web.config to work properly. First I tried to have a second web.config in the sub directory with authentication and authorization set to forms, but it blew up. Next, I tried to modify the root web.config in the following manner...
0
4261
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET Applications and owner of Access Microsystems. Doug can be reached at doug@accessmicrosystems.com. --------------------------------------------------------------------------------
11
2231
by: xenophon | last post by:
I have a web site with forms authentication and a single logon page. I have 4 subdirectories, each that should be protected by a different username/password combination. For testing purposes, the username/password are hardcoded into the code-behind C# code. How can I write my web.config to make this happen? Thanks.
8
2431
by: Jay Balapa | last post by:
This am I posted the following message thinking there was a problem with Dot Net Framework 2.0. But problem occurs only with Dot Net 2.0 and IIS 6.0 installed machines. I tested this on my laptop running 5.1 and Framework 2.0 and runs perfectly fine. Can anyone from Microsoft help me. I have all our ASP.Net applications converted 2.0 and Iam left hanging with this bug. Jay
7
2050
by: Adam Bates | last post by:
Hello, I have a problem, I have been using Cookie Authentication on the 1.1 framework for around 3 months, when I moved the site internally within my hosting company from a server with 1.1 framework to a server with 2.0 framework I have had cookie expiring problems. Since moving to the 2.0 server, the cookies now expire within 24 hours at the most. I have checked that the cookie has a expiry date in the future, which it does (6 years...
4
424
by: =?Utf-8?B?R3V1czEyMw==?= | last post by:
Hi, I created a web site on a remote server. To logon the user must enter a user id and password. The site is uses Forms Authentication. The web config file looks as follows: <configuration> <system.web> <customErrors mode="Off"/>
5
3578
by: Rory Becker | last post by:
Having now created a Custom MembershipProvider that seems to work correctly with my Logon and ChangePassword controls, I am, as they say, a happy bunny. The next stange is to move on to the creation of content which adjusts based on the user. I have several pages which require a user to be logged on and several which do not. Prior to this point in time I have used 2 different master pages. one with a control which checks a session...
0
9798
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10863
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10422
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7978
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7136
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6007
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4622
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4230
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3241
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.