I could not understand:
- why through making change in the database?
- why subdirectory web.config?
There are periods of operation when only administrators should have access to the site. At the end of this period, normal operation needs to be restored without making any change other than the in the database.
I didn't realise you were still looking for a solution to this! A couple of ways you could do this off the top of my head:
Handle the logging in event of your login control and check to see if the user is admin or not and if the site is in lock down mode.
Create a custom membership provider that handles the lock down by overriding the IsApproved flag of the user to return false during periods of lockdown
There are periods of operation when only administrators should have access to the site.
At the end of this period, normal operation needs to be restored without making any change other than the in the database
I cannot understand why editing of web.config files of subdirectories could have possibly be engaged for this
Gennady Vanin (Novosibirsk) -- Геннадий Ванин (Новосибирск) -- Guennadi Vanine
I cannot understand why editing of web.config files of subdirectories could have possibly be engaged for this
You can have individual authorization sections in sub-folders by putting web.configs in them and listing the access levels inside the .config.
A technical user could edit a file and enable them to block off access to a folder but what Tatworth is saying is that he needs a solution that doesn't involve that because the websites admins are not that technical.
Hi, Anas thank you for this faq it might work. However I'm suffering a problem the way you asked me to convert it isn't working. I used the link you gave me with at developer fusion but it comes with an error Line 1 Col 1: EOF Expected.
rtpHarry
All-Star
56620 Points
8958 Posts
Re: Login control FAQ :
Nov 23, 2009 06:54 AM|LINK
I didn't realise you were still looking for a solution to this! A couple of ways you could do this off the top of my head:
Handle the logging in event of your login control and check to see if the user is admin or not and if the site is in lock down mode.
Create a custom membership provider that handles the lock down by overriding the IsApproved flag of the user to return false during periods of lockdown
guenavan
Contributor
4306 Points
1695 Posts
Re: Login control FAQ :
Nov 23, 2009 07:07 AM|LINK
I cannot understand why editing of web.config files of subdirectories could have possibly be engaged for this
rtpHarry
All-Star
56620 Points
8958 Posts
Re: Login control FAQ :
Nov 23, 2009 09:02 PM|LINK
You can have individual authorization sections in sub-folders by putting web.configs in them and listing the access levels inside the .config.
A technical user could edit a file and enable them to block off access to a folder but what Tatworth is saying is that he needs a solution that doesn't involve that because the websites admins are not that technical.
jasbir_maan0...
Member
7 Points
9 Posts
Re: Login control FAQ :
Dec 17, 2009 11:42 AM|LINK
For single sign on you just need to put the "machine key" tag in web.config using same key in both application
<
machineKey validationKey="282487E295028E59B8F411ACB689CCD6F39DDD21E6055A3EE480424315994760ADF21B580D8587DB675FA02F79167413044E25309CCCDB647174D5B3D0DD9141" decryptionKey="8B6697227CBCA902B1A0925D40FAA00B353F2DF4359D2099" validation="SHA1"/>net_2
Member
4 Points
11 Posts
Re: Login control FAQ :
Apr 30, 2010 07:46 PM|LINK
Hi, anas is there a way to have this code in VB. I use VB. any way to convert it.
Thanks for your help net_2
anas
All-Star
73649 Points
7914 Posts
Moderator
Re: Login control FAQ :
Apr 30, 2010 09:55 PM|LINK
There are a lot of online C# to vb code converters like this one.
Mallik_Kolli
Member
2 Points
1 Post
Re: Login control FAQ :
May 06, 2010 10:55 AM|LINK
you can use SQL DB Check the link :
http://www.studiocoast.com.au/knowledgebase/article-6-aspnet-using-sql-server-instead-of-aspnetdbmdf.aspx
net_2
Member
4 Points
11 Posts
Re: Login control FAQ :
Jun 05, 2010 07:27 PM|LINK
Hi, Anas thank you for this faq it might work. However I'm suffering a problem the way you asked me to convert it isn't working. I used the link you gave me with at developer fusion but it comes with an error Line 1 Col 1: EOF Expected.
I don't understand that.
Any help please
anas
All-Star
73649 Points
7914 Posts
Moderator
Re: Login control FAQ :
Jun 09, 2010 07:28 PM|LINK
Which part from the code you want it to be converted to VB ?