How do I create a login and keep the user logged in?

T

Trint Smith

Ok,
I have the data in sql server for the user and they want to login...like
- keep a reference of them after they do:
userid
password
Thanks,
Trint

..Net programmer
(e-mail address removed)
 
C

CJ Taylor

Trint,

Look into using IPrinciple and IIdentity interfaces. they sit in the
Thread.CurrentPrinciple property and can be customized however you would
like. There are a couple defaults (WindowsIdentity, GenericIdenity and a
couple more)... And coenciding (sp?) with that is the WindowsPrinciple and
GenericPrinciple.

By setting your CurrentPrinciple on startup (such as in Sub Main) you can
use it thoughout the life of your program. I'm using this now, works great.

HTH,
CJ
 
T

Trint Smith

I can do it if I knew how to pass values, like userid string and
password string from one webform to another. Is that possible?
Thanks,
Trint

..Net programmer
(e-mail address removed)
 

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

Top