Don't store it in a Session object. If you are web farming, the Session
object needs to round-trip to the database in any event.

You really should use the UserData field in the
FormsAuthenticationCookie to store Role information.

-John
http://www.iunknown.com


-----Original Message-----
From: Pete B [mailto:[EMAIL PROTECTED]] 
Sent: Friday, April 19, 2002 2:59 PM
To: [EMAIL PROTECTED]
Subject: [DOTNET] FormsAuthentication Question

In my formsAuthentication_OnAuthenticate event I want to
replace the user intrinsic with my own user object. I need to
populate my
user object with additional info ( e.g. roles ); however, I do not
want to
store this stuff in a cookie, and I don't want to reload it from the
database on each OnAuthenticate event.

The Session object seems a reasonable place for storing user info,
but I can't access Session from OnAuthenticate.

What should I do?




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to