Single sign-on with .ASPXAUTH cookie

  • Thread starter Andrey Skvortsov
  • Start date
A

Andrey Skvortsov

How I can issue web forms authentification cookie that can be used by both applications located on same server(server wide asp.net cookie)?I've one users' domain but asp.net encrypts .ASPXAUTH cookies differently for these two applications
What can I do with it?
 
P

Paul Glavich [MVP - ASP.NET]

Make sure the cookie name and path are the same. Also, in the
machine.config, it will have the encryption key set to something like :-

<machineKey validationKey="AutoGenerate,IsolateApps"
decryptionKey="AutoGenerate,IsolateApps" validation="SHA1" />

The "isolateApps" means that a different key will be AutoGenerated for
*each* application. You can either remove the isolateApps option or insert a
specific key value for it to use.

--
- Paul Glavich
Microsoft MVP - ASP.NET


Andrey Skvortsov said:
How I can issue web forms authentification cookie that can be used by both
applications located on same server(server wide asp.net cookie)?I've one
users' domain but asp.net encrypts .ASPXAUTH cookies differently for these
two applications.
 
A

Andrey Skvortsov

Thanks Paul,don't know about this setting, so ASP.NET supports single sign-on out of the box-wonderful!
 
H

Hernan de Lahitte

You have a full sample of SSO with Forms here:
http://weblogs.asp.net/hernandl/archive/2004/06/09/ssoformsauth.aspx

--
Hernan de Lahitte
Lagash Systems S.A.
http://weblogs.asp.net/hernandl


This posting is provided "AS IS" with no warranties, and confers no rights.

Andrey Skvortsov said:
How I can issue web forms authentification cookie that can be used by both
applications located on same server(server wide asp.net cookie)?I've one
users' domain but asp.net encrypts .ASPXAUTH cookies differently for these
two applications.
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top