Membership problem!

S

Sean

have membership tables installed on external SQL database? check
have login controls working such that new users are created in that table?
check
those users also show up in the asp management page? check
Can grab all the users in a memberhship collection object and they are all
valid and correct? check
form security set up? check
membership provider model setup? check

able to know who the current user is after login? no!
Thus my login status control doesnt work nor does my login name control.


I am completely lost. I have been fighting with this thing for so long I
could have made my own login methodology by now!
 
S

Sean

I cant believe this! If you basically ignore all example of how to set up
forms security in the web.config file and just place the following

<authentication mode="Forms" />

the membership frameworks starts to work properly! I log in and
membership.getuser() actually works!
Basically I took out all the settings and it works perfectly now.
 
S

Sean

no..I think I was doing two things wrong.

1. trying to evaluate the membershipuser on the same page that has the login.
Clearly the current member doesnt get established until after the page posts
back which leads to issue 2.
2. I have login and redirect in forms security as the same page becuase I
just wanted to get this moving. Becuase it wasnt posting to a new page on
validation the code objects never got filled
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,835
Latest member
KetoRushACVBuy

Latest Threads

Top