Re: Quick ? on Forms Authentication

From: Karl Seguin (_at_)
Date: 10/27/04

  • Next message: Scott Mitchell [MVP]: "Re: Quick ? on Forms Authentication"
    Date: Wed, 27 Oct 2004 11:20:31 -0400
    
    

    Instead of using RedirectFromLoginPage (which does what you describe), you
    can use

    ForumsAutnetication.SetAuthCookie() (same parameters as
    RedirectFromLoginPage()) and then redirect yourself via
    Response.Redirect(...)

    Karl

    -- 
    MY ASP.Net tutorials
    http://www.openmymind.net/
    "oakleyx" <Daniel.Peck@gmail.com> wrote in message
    news:db7b62fd.0410270706.24dd5a48@posting.google.com...
    > Hi,
    >
    > I'm using asp.net form authentication.  The problem i'm having is when
    > my cookie expires it redirects me to the login page, so I log in again
    > and it brings me to the page that I was on last before the cookie
    > expired.
    >
    > Is there something I can do so that after I login it always redirect
    > to the Default.aspx page?
    >
    > Thanks,
    

  • Next message: Scott Mitchell [MVP]: "Re: Quick ? on Forms Authentication"

    Relevant Pages

    • Forms Authentication without Login Page
      ... using RedirectFromLoginPage()? ... My reason for asking is that I'm trying to use Forms Authentication to allow ... the MS examples show using a Login page that users are redirected to if they ... explicitly log the user in but without redirecting to ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • RedirectFromLoginPage
      ... if the ReturnURL parameter is blank when the RedirectFromLoginPage method is ... Depending upon the login status the login button performs either a login or ... Sub Page_Load ...
      (microsoft.public.dotnet.framework.aspnet)
    • RedirectFromLoginPage
      ... if the ReturnURL parameter is blank when the RedirectFromLoginPage method is ... Depending upon the login status the login button performs either a login or ... Sub Page_Load ...
      (microsoft.public.dotnet.security)
    • Re: NEWBIE-"RedirectFromLoginPage"
      ... The method RedirectFromLoginPage() redirects to default.aspx. ... > Trying to make a login page to a website. ... > Requested Url: /mmgims/default.aspx ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Question about redirecting a user after authentication
      ... RedirectFromLoginPage() works just fine. ... make sure that a querystring "ReturnURL" is appended to ... Once login is validated it will automatically redirect ... If returnURL is absent then ...
      (microsoft.public.dotnet.framework.aspnet)