Author: DCADS | Posted on: 4/15/2010 3:45:13 PM | Views : 263

I have a page that uses the if (Page.User.IsInRole("admin")) clause.  However the roles seems to time out way before the user login does.  This ends up just throwing an error (instance not set to an object).
Any idea what is wrong here? (My web.config bit is shown here as well).

<authentication mode="Forms"> <forms loginUrl="~/Default.aspx" cookieless="AutoDetect" defaultUrl="users/home.asp" timeout="480" slidingExpiration="true" name=".ASPXFORMSAUTH"> <credentials passwordFormat="Clear"></credentials> </forms> </authentication> <membership defaultProvider="MISMembershipProvider"> <providers> <clear/> <add name="MISMembershipPro ...

Go to the complete details ...