|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Forms Authentication Redirect URLI want to be able to programmatically log a user in as a guest and redirect
them to a different page. Is there any way to do a RedirectFromLoginPage() and explicity specify the page to which the user will be redirected after the login? -- p RedirectFromLoginPage internally makes use of SetAuthCookie and a
Response.Redirect. You can simply make use of those two functions if you need more granular control. FormsAuthentication.SetAuthCookie(value, false); Response.Redirect("whatever.aspx"); Karl -- Show quoteHide quote--> MY ASP.Net tutorials http://www.openmymind.net/ http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX! "porko" <po***@discussions.microsoft.com> wrote in message news:EE653E8C-328F-4E99-9DD5-67A1F6CA60AB@microsoft.com... >I want to be able to programmatically log a user in as a guest and redirect > them to a different page. > > Is there any way to do a RedirectFromLoginPage() and explicity specify the > page to which the user will be redirected after the login? > > -- p Yes - That seems to do the trick.
Thanks! Show quoteHide quote "Karl Seguin" wrote: > RedirectFromLoginPage internally makes use of SetAuthCookie and a > Response.Redirect. You can simply make use of those two functions if you > need more granular control. > > FormsAuthentication.SetAuthCookie(value, false); > Response.Redirect("whatever.aspx"); > > Karl > > -- > --> > MY ASP.Net tutorials > http://www.openmymind.net/ > http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX! > "porko" <po***@discussions.microsoft.com> wrote in message > news:EE653E8C-328F-4E99-9DD5-67A1F6CA60AB@microsoft.com... > >I want to be able to programmatically log a user in as a guest and redirect > > them to a different page. > > > > Is there any way to do a RedirectFromLoginPage() and explicity specify the > > page to which the user will be redirected after the login? > > > > -- p > > >
databinding a Dropdownlist to another dropdownlist
thread won't start N-Tier Architecture How to return more than one value from an function what's the difference... Urgent plz SiteMapPath Control and dynamic items Reinstalled SQL-server handling a button's click event SQLServer SessionState Testing |
|||||||||||||||||||||||