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 / April 2008

Tip: Looking for answers? Try searching our database.

Check login status

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ascll - 16 Apr 2008 09:45 GMT
Greetings,

How to I know existing user already login to my website (using ASP.net 2.0,
MS Web Developer's login wizard)?

If the user already login, I would like to set the path for Hyperlink A to
"login/hyperlinkA", else the path will be "hyperlinkA".

Kindly advise, and show me the steps in detail.

Thanks.
Mick Wilson - 16 Apr 2008 15:34 GMT
> Greetings,
>
> How to I know existing user already login to my website (using ASP.net 2.0,
> MS Web Developer's login wizard)?

You can check whether or not the request is authenticated using
httprequest.isauthenticated

http://msdn2.microsoft.com/en-us/library/system.web.httprequest.isauthenticated.aspx
Cowboy (Gregory A. Beamer) - 16 Apr 2008 17:28 GMT
Programatically:
Check if authenticated

Drag and drop:
Set up a login view and set the link in the logged in template to one link
and the non-logged in template to another.

Signature

Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************

| Think outside the box!

*************************************************
> Greetings,
>
[quoted text clipped - 7 lines]
>
> Thanks.

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.