473,654 Members | 3,011 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Login Control and Custom Membership provider

Hello:

I have custom Membership and Role providers for an ASP.NET application,
the problem comes when the Authentication gets done ( and i'm using the
Login control, it finished properly ) but looks like the user is not
really logged in ( Verified using the LoginView control )

¿¿ What could be the possible reasons for that problem ??

Thanks in advance !!!

P.S.: My web.config file for authenticaction and autorization looks like
this:

<!--
The <authentication section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authenticati on mode="Forms">
<forms loginUrl="Renov acion.aspx"
protection="All "
timeout="30"
name=".ASPXFORM SAUTH"
path="/FormsAuth"
requireSSL="fal se"
slidingExpirati on="true"
defaultUrl="Acc eso.aspx"
cookieless="Use Cookies"
enableCrossAppR edirects="false "/>
</authentication>

<membership
defaultProvider ="MembershipPro vider"
userIsOnlineTim eWindow="15">
<providers>
<add
connectionStrin gName="Connecti onString"
applicationName ="XXX"
minRequiredPass wordLength="5"
minRequiredNona lphanumericChar acters="0"
enablePasswordR etrieval="true"
passwordFormat= "Clear"
name="Membershi pProvider"
type="XXX.XXXMe mbershipProvide r"
/>
</providers>
</membership>

<roleManager
enabled="true"
cacheRolesInCoo kie="true"
defaultProvider ="RoleProvid er"
cookieName=".AS PXROLES"
cookiePath="/"
cookieTimeout=" 30"
cookieRequireSS L="false"
cookieSlidingEx piration="true"
createPersisten tCookie="false"
cookieProtectio n="All">

<providers>
<clear />
<add
connectionStrin gName="Connecti onString"
applicationName ="CaixanovaReno vacion"
writeExceptions ToEventLog="fal se"
name="XXX"
type="XXX.XXXRe novacionRolePro vider"
/>
</providers>
</roleManager>

<authorizatio n>
<allow users="*"/>
</authorization>
Jan 22 '07 #1
1 3595
Hello:

Got it working yet, thanks !!!
Jan 22 '07 #2

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

Similar topics

2
3550
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 custom membership provider fine and removes the security question/answer fields as designated in the custom provider. The problem is that when I try to create a new user in the create user wizard by entering the info and pressing the 'create...
3
7103
by: ad | last post by:
I have create a custom membership provider. The common usage of custom membership is set it as default Membership Provider win web.config, and use login controls with it. How can I use custom membership provider without Login Controls? For example, the name of my custom membership provider MyMembershipProvider. Is the codes below right? MyMembershipProvider myProvider=new MyMembershipProvider();
1
2595
by: ad | last post by:
I have created a custom Membership Provider, and set it as default membership provider in web.config. I have also set deny users ="?" in web.config. When I use a login control with it, it work fine. but now I want to valid with code like: MyMembershipProvider myProvider = new MyMembershipProvider(); if (myProvider.ValidateUser("myid", "mypw"))
4
4756
by: Steven Nagy | last post by:
Hidey ho, C#, ASP.NET, VS2005, SQL Server 2005 Developer I've used aspnet_regsql to install the membership/role tables into my application database. I have confirmed that all the tables are there. I've also configured the web.config to specify the new database as the role provider and the membership provider. I have used the "ASP.NET Configuration" tool to manage users and roles. These are definately
0
1435
by: asnowfall | last post by:
After logging in, I am not able to redirect to the target url; and this happens only when I connect to the website using "http://machine- name:portname"; but not if I connect using either "http://IP:portname" or "http://localhost:portname" Web site has custom 'Login control' and custom 'Membership provider'; and I do not have access to 'Login control' control code. MembershipProvider::Validateuser() is returning true irrespective of...
0
947
by: askcoffman | last post by:
I have a login control that is used as a template for all of my websites. I am trying to integrate my Custom Membership provider, but cannot create a provider object to access the functions, specifically validate user( ). How can I use my own login control and combine the provider functions?
2
4516
by: antonyliu2002 | last post by:
I am testing ASP.NET 2.0 Forms athentication with user credentials in SQL Server 2005. I don't want to put user credentials in web.config, so the credentials section is commented out. The following is the relevant part in my web.config. <authentication mode="Forms"> <forms name=".MyWebAppAuth" path="/" loginUrl="Default.aspx" protection="All"
2
2765
by: GaryDean | last post by:
My ASP.Net application, that uses the SQL Membership Provider, runs fine on my development box (server2003) as long as I use the standard provider. But, in anticipation of deployment to other servers I am attempting to register another provider instance. I'm not sure this is the right deployment choice but I haven't found any guidelines on how to best deploy apps using the SQL Membership provider. I first attached...
1
1440
by: Erik | last post by:
Hi Everyone, Hopefully this is an easy one. I've googled around for the answer but cant find it. I have simple login page that authenticates via a web service. I am using a custom membership provider which simply send the username and password to the web service and I get back a user ID if authentication passes. The problem is that I don't know how to get the UserID back to the login
0
8375
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8815
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8707
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8482
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8593
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7306
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6161
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5622
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4149
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.