Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2007

Tip: Looking for answers? Try searching our database.

User authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sravan_reddy001 - 18 Jun 2007 10:41 GMT
is there any possibility to authenticate the user without using the
new login contorls.

i'm ready to create new tables and design. all that i need is track
weather the user is online or not. If he is logged in, he is capable
of viewing his details and some special pages
Peter Bradley - 18 Jun 2007 11:24 GMT
Does this help?

http://www.peredur.uklinux.net/FormsAuthenticationSln.zip

Please carefully examine this file before opening it.  It contains source
code (C#) a compiled executable that you should recompile from the code that
you have examined before you even think about executing it.  I make no
guarantees as to the file's freedom from malware.  You open this file at
your own risk.

Peter

> is there any possibility to authenticate the user without using the
> new login contorls.
>
> i'm ready to create new tables and design. all that i need is track
> weather the user is online or not. If he is logged in, he is capable
> of viewing his details and some special pages
sravan_reddy001 - 18 Jun 2007 12:10 GMT
This is working. Thanks.

But i don't know how the userid and password is checked with the
values in the database. and how the webpages know that the user is
logged in when browsing multiple pages.
Peter Bradley - 18 Jun 2007 13:06 GMT
Have you looked at the code?  Have you looked at the Word document in the
Solution folder, that explains how it works?

The IsAuthorised() method checks the database and, in this case (for
simplicity), returns the user's role.  Obviously in real applications things
would be a bit more complex than this with users having, potentially, many
roles.

The code is decorated with attributes that check security information on
entry into protected classes/methods.

Read the Word document, and then post again with any questions you still
have.

Peter

> This is working. Thanks.
>
> But i don't know how the userid and password is checked with the
> values in the database. and how the webpages know that the user is
> logged in when browsing multiple pages.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.