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

  • Thread starter Thread starter Trint Smith
  • Start date Start date
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)
 
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
 
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)
 
Back
Top