473,388 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Membership Problem

Hi, I have a membership problem I couldn't resolve. I have set up membership
as most of tutorial instructed, and I am able to log on, but cannot stay log
on for some reason. ex: when I log on, the log in become log on, but when I
access the protected page, it still prompt me for log in. Please help!

I am using SQL to store the membership,

the code in web.config is as follow,

<roleManager enabled="true"/>
<authentication mode="Forms"/>
<membership defaultProvider="MembershipProvider">
<providers>
<add name="MembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="DataConnection" minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>

Aug 25 '06 #1
6 1874
Do you have an <authorizationsection? If so what does it look like?

Kevin

Scatir wrote:
Hi, I have a membership problem I couldn't resolve. I have set up membership
as most of tutorial instructed, and I am able to log on, but cannot stay log
on for some reason. ex: when I log on, the log in become log on, but when I
access the protected page, it still prompt me for log in. Please help!

I am using SQL to store the membership,

the code in web.config is as follow,

<roleManager enabled="true"/>
<authentication mode="Forms"/>
<membership defaultProvider="MembershipProvider">
<providers>
<add name="MembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="DataConnection" minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>
Aug 25 '06 #2
My authorization section is as follows:

<authorization>
<deny users="*" />
<allow roles="admin" />
<allow roles="trader" />
</authorization>

"Kevin Jones" wrote:
Do you have an <authorizationsection? If so what does it look like?

Kevin

Scatir wrote:
Hi, I have a membership problem I couldn't resolve. I have set up membership
as most of tutorial instructed, and I am able to log on, but cannot stay log
on for some reason. ex: when I log on, the log in become log on, but when I
access the protected page, it still prompt me for log in. Please help!

I am using SQL to store the membership,

the code in web.config is as follow,

<roleManager enabled="true"/>
<authentication mode="Forms"/>
<membership defaultProvider="MembershipProvider">
<providers>
<add name="MembershipProvider"
type="System.Web.Security.SqlMembershipProvider"
connectionStringName="DataConnection" minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>
Aug 25 '06 #3
And I assume you're login is in either the "admin" or "trader" role?
Kevin Jones

Scatir wrote:
My authorization section is as follows:

<authorization>
<deny users="*" />
<allow roles="admin" />
<allow roles="trader" />
</authorization>

"Kevin Jones" wrote:
>Do you have an <authorizationsection? If so what does it look like?

Kevin

Scatir wrote:
>>Hi, I have a membership problem I couldn't resolve. I have set up membership
as most of tutorial instructed, and I am able to log on, but cannot stay log
on for some reason. ex: when I log on, the log in become log on, but when I
access the protected page, it still prompt me for log in. Please help!

I am using SQL to store the membership,

the code in web.config is as follow,

<roleManager enabled="true"/>
<authentication mode="Forms"/>
<membership defaultProvider="MembershipProvider">
<providers>
<add name="MembershipProvider"
type="System.Web.Security.SqlMembershipProvide r"
connectionStringName="DataConnection" minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>
Aug 28 '06 #4
Ya, I login as admin role, but only the login will change to logout, when I
try to access any page, it will still prompt me for login.

"Kevin Jones" wrote:
And I assume you're login is in either the "admin" or "trader" role?
Kevin Jones

Scatir wrote:
My authorization section is as follows:

<authorization>
<deny users="*" />
<allow roles="admin" />
<allow roles="trader" />
</authorization>

"Kevin Jones" wrote:
Do you have an <authorizationsection? If so what does it look like?

Kevin

Scatir wrote:
Hi, I have a membership problem I couldn't resolve. I have set up membership
as most of tutorial instructed, and I am able to log on, but cannot stay log
on for some reason. ex: when I log on, the log in become log on, but when I
access the protected page, it still prompt me for log in. Please help!

I am using SQL to store the membership,

the code in web.config is as follow,

<roleManager enabled="true"/>
<authentication mode="Forms"/>
<membership defaultProvider="MembershipProvider">
<providers>
<add name="MembershipProvider"
type="System.Web.Security.SqlMembershipProvider "
connectionStringName="DataConnection" minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>
Aug 28 '06 #5
>><authorization>
>> <deny users="*" />
<allow roles="admin" />
<allow roles="trader" />
</authorization>

You're denying all users!

You probably want the order changed
>><authorization>
<allow roles="admin" />
<allow roles="trader" />
<deny users="*" />
</authorization>

Scatir wrote:
Ya, I login as admin role, but only the login will change to logout, when I
try to access any page, it will still prompt me for login.

"Kevin Jones" wrote:
>And I assume you're login is in either the "admin" or "trader" role?
Kevin Jones

Scatir wrote:
>>My authorization section is as follows:

<authorization>
<deny users="*" />
<allow roles="admin" />
<allow roles="trader" />
</authorization>

"Kevin Jones" wrote:

Do you have an <authorizationsection? If so what does it look like?

Kevin

Scatir wrote:
Hi, I have a membership problem I couldn't resolve. I have set up membership
as most of tutorial instructed, and I am able to log on, but cannot stay log
on for some reason. ex: when I log on, the log in become log on, but when I
access the protected page, it still prompt me for log in. Please help!
>
I am using SQL to store the membership,
>
the code in web.config is as follow,
>
<roleManager enabled="true"/>
<authentication mode="Forms"/>
<membership defaultProvider="MembershipProvider">
<providers>
<add name="MembershipProvider"
type="System.Web.Security.SqlMembershipProvide r"
connectionStringName="DataConnection" minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>
>
Aug 28 '06 #6
It seem to solve the problem. Thanks.

"Kevin Jones" wrote:
>><authorization>
>> <deny users="*" />
>> <allow roles="admin" />
>> <allow roles="trader" />
>></authorization>


You're denying all users!

You probably want the order changed
>><authorization>
>> <allow roles="admin" />
>> <allow roles="trader" />
>> <deny users="*" />
>></authorization>


Scatir wrote:
Ya, I login as admin role, but only the login will change to logout, when I
try to access any page, it will still prompt me for login.

"Kevin Jones" wrote:
And I assume you're login is in either the "admin" or "trader" role?
Kevin Jones

Scatir wrote:
My authorization section is as follows:

<authorization>
<deny users="*" />
<allow roles="admin" />
<allow roles="trader" />
</authorization>

"Kevin Jones" wrote:

Do you have an <authorizationsection? If so what does it look like?

Kevin

Scatir wrote:
Hi, I have a membership problem I couldn't resolve. I have set up membership
as most of tutorial instructed, and I am able to log on, but cannot stay log
on for some reason. ex: when I log on, the log in become log on, but when I
access the protected page, it still prompt me for log in. Please help!

I am using SQL to store the membership,

the code in web.config is as follow,

<roleManager enabled="true"/>
<authentication mode="Forms"/>
<membership defaultProvider="MembershipProvider">
<providers>
<add name="MembershipProvider"
type="System.Web.Security.SqlMembershipProvider "
connectionStringName="DataConnection" minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"/>
</providers>
</membership>
Aug 29 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John | last post by:
Hi I was working fine with create user wizard and the default membership provider. I have now customised the membership provider as per attached web.config. The create user wizard picks up the...
9
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. ...
5
by: Vishal Gupta | last post by:
Hi This is Vishal this side.I have been trying to create a new sample website using the new Membership Provider Class. Now when I try to a create a new website and then hit on the Website...
3
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is...
4
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= | last post by:
I have been having some trouble with implementing a custom Membership Provider. We have a custom data store and business logic that pulls user information. I need some level of functionality...
4
by: Ben | last post by:
Hi, i have already posted a more or less similar thread but it's gone unsolved with the flow of the other threads .. When an anonymous user has created an new account (with the...
1
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the...
1
by: =?Utf-8?B?ZVByaW50?= | last post by:
Asp.Net v2.0 I have created a web application and I am using it from a single website and database. The web application has different ‘portals’ – each independent and I am using the...
8
by: Nick | last post by:
Hi there, Membership.GetNumberOfUsersOnline() works great the first time, then jumps up to the number of users registered in the system. I have tried enumerating through each user individually...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.