How do you pass credentials from a classic ASP app to ASP.NET 2.0?

C

CK

Good morning all,
We have a classic asp application on our local intranet. Employees log in to
and use the app. We recently added some additional functionality to the site
and this was written in .net 2.0. How can I discover that a user has already
logged in and been authenticated in classic asp and let the new 2.0 app no
that the user has already been authenticated? Currently they log in in
classic and then they are forced to log in again when they hit the .net 2.0
areas. Any ideas / suggestions?

TIA,
~CK
 
C

CK

Mark Rae said:
Not without knowing how the authentication process works in your ASP
Classic site...

We have roles and groups in a SQL server database. If the user is part of
the appropriate group or role, they can view the current page. We have user
names and passwords. these are the same ones used in .NET 2.0.
 
M

Mark Rae

We have roles and groups in a SQL server database. If the user is part of
the appropriate group or role, they can view the current page. We have
user names and passwords. these are the same ones used in .NET 2.0.

In which case, I can't really see what the problem is... Can't your .NET 2
site connect to the same database as your ASP Classic site...?
 
C

CK

yes it uses the same SQL database but is there a way I can check if a user
has been authenticated.
 
M

Mark Rae

yes it uses the same SQL database but is there a way I can check if a user
has been authenticated.

Er, well unless I'm *really* missing something here, can't your ASP.NET app
check whether a user has been authenticated in exactly the same way as your
ASP app does, since they both use the same database...?
 
C

CK

Mark Rae said:
Er, well unless I'm *really* missing something here, can't your ASP.NET
app check whether a user has been authenticated in exactly the same way as
your ASP app does, since they both use the same database...?

I am a dumbshit, I forgot to mention, in the classic app, if you are
authenticated through windows by logging into the domain, you are not forced
to login in the classic app. I am trying to get the same behavior in the
..NET app.Thanks for your help.

~CK
 
M

Mark Rae

I am a dumbshit, I forgot to mention, in the classic app, if you are
authenticated through windows by logging into the domain, you are not
forced to login in the classic app. I am trying to get the same behavior
in the .NET app.Thanks for your help.

Sigh... it's like drawing teeth...

HOW ARE YOU PERFORMING THE AUTHENTICATION IN THE ASP CLASSIC APP????

Show us the code. It's almost certainly a very simple thing to convert the
code to VB.NET / C# and add it in to your ASP.NET app...
 
C

CK

Mark Rae said:
Sigh... it's like drawing teeth...

HOW ARE YOU PERFORMING THE AUTHENTICATION IN THE ASP CLASSIC APP????

Show us the code. It's almost certainly a very simple thing to convert the
code to VB.NET / C# and add it in to your ASP.NET app...

Marc I believe the classic app uses Windows Authentication and the net 2.0
app uses forms authentication.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,757
Messages
2,569,543
Members
45,026
Latest member
camilin05

Latest Threads

Top