Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 2nd, 2008, 05:22 AM
Registered User
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB Redirection of users after login

Hello all!

I'm reading the Begining ASPNET 2.0 book an I find it great !

I followed the guides to start using the Login and Authorization controls.

I created one new site and configured a couple of users using the "website administration tool".

Is it possible to redirect each user to a different page after the log in?, I don't want all users to go to the same page, I want every user to go to his own different page (I'll have only 5 users in total).

How can I do it?

Thanks for the help in advance !
 
Old April 2nd, 2008, 12:13 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

After you process the login, check the user name, determine the page they need to go to and redirect them.

Normally you would use the "FormsAuthentication.RedirectFromLoginPage()" method to create the auth ticket and then redirect to the page they originally requested or to the default page.

Instead, use the "FormsAuthentication.SetAuthCookie()" method to create the auth ticket without the automatic redirect. Then do a regular "Response.Redirect()" to the user specific page.

-Peter
peterlanoie.blog





Similar Threads
Thread Thread Starter Forum Replies Last Post
users login problem luisman_luisman BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 8 November 12th, 2009 03:48 PM
Sometimes Users lost the login Maxxim BOOK: ASP.NET Website Programming Problem-Design-Solution 2 September 20th, 2006 02:32 PM
How do you get a users Network login ID lokilewis Pro VB.NET 2002/2003 2 November 28th, 2005 04:13 AM
Monitoring users login/logout to my active directo Gu General .NET 0 June 10th, 2005 11:49 AM
A Best Way To Record Track Of Users Login yoord BOOK: ASP.NET Website Programming Problem-Design-Solution 1 July 3rd, 2004 08:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.