Forms Authentication and classic ASP
From: Joe (anonymous_at_discussions.microsoft.com)
Date: 05/27/04
- Next message: i23bam: "Re: Converting Win32 API to VB.NET for Folder Security"
- Previous message: jzhu: "RE: Getting AD Groups"
- Next in thread: Joseph E Shook [MVP - ADSI]: "Re: Forms Authentication and classic ASP"
- Reply: Joseph E Shook [MVP - ADSI]: "Re: Forms Authentication and classic ASP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 27 May 2004 07:31:02 -0700
I have two applications running on the same server. One is a classic ASP application, and the other a new ASP.NET application. Users currently log in to the classic ASP application by supplying a username and password on a login form. After a configurable (sliding) timeout, users are automatically logged out, and redirected to the login page.
I want to have a single login which gives users seamless access to both the old ASP application and a new ASP.NET application. I.e. once a user logs in, he can navigate between the ASP and ASP.NET pages unless the sliding timeout expires. Once the sliding timeout expires, he should be logged out of both ASP and ASP.NET applications.
Can anyone tell me the best way to achieve this.
So far my thinking is as follows:
- The new ASP.NET application will use Forms authentication, and the login page will be in the ASP.NET application.
- For ASP.NET I just use standard Forms authentication
- When the user attempts to access a page in the old classic ASP application, a VBScript function "IsAuthenticated" is executed. If this returns True, the user is allowed access to the page. If it returns False, the user is redirected to the login page in the new ASP.NET application.
To implement the "IsAuthenticated" function, I need to do the following:
- Access the Forms Authentication cookie: I've tested this and I can do it
- Decrypt the ticket in the Forms Authentication cookie
- Test the Expired property of the ticket
Any tips on how to decrypt the value in the authentication cookie using classic ASP?
Joe
- Next message: i23bam: "Re: Converting Win32 API to VB.NET for Folder Security"
- Previous message: jzhu: "RE: Getting AD Groups"
- Next in thread: Joseph E Shook [MVP - ADSI]: "Re: Forms Authentication and classic ASP"
- Reply: Joseph E Shook [MVP - ADSI]: "Re: Forms Authentication and classic ASP"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|