FormsAuthentication.GetRedirectUrl()

Discussion in 'ASP .Net Security' started by Dominick Baier, Sep 10, 2006.

  1. Hey,

    if you look at the source code you will see that these 2 parameters aren't
    even used (besides a check for null)

    you can safely do this:

    GetRedirectUrl(string.Empty, false);


    ---
    Dominick Baier, DevelopMentor
    http://www.leastprivilege.com

    > The "FormsAuthentication.GetRedirectUrl()" function takes two
    > parameters:
    > - username
    > - createPersistentCookie
    > I don't know *why* the function needs these parameters to tell me what
    > the original URL had been that had been requested before the user was
    > redirected to the Login page.
    >
    > Is there any simple way to extract the information for what that URL
    > had been *without* having to provide these parameters? What do they do
    > anyway?
    >
    > Alex
    >
     
    Dominick Baier, Sep 10, 2006
    #1
    1. Advertising

  2. Dominick Baier

    Alex Maghen Guest

    The "FormsAuthentication.GetRedirectUrl()" function takes two parameters:
    - username
    - createPersistentCookie

    I don't know *why* the function needs these parameters to tell me what the
    original URL had been that had been requested before the user was redirected
    to the Login page.

    Is there any simple way to extract the information for what that URL had
    been *without* having to provide these parameters? What do they do anyway?

    Alex
     
    Alex Maghen, Sep 10, 2006
    #2
    1. Advertising

  3. Dominick Baier

    Alex Maghen Guest

    How... amusing! Thanks.

    "Dominick Baier" wrote:

    > Hey,
    >
    > if you look at the source code you will see that these 2 parameters aren't
    > even used (besides a check for null)
    >
    > you can safely do this:
    >
    > GetRedirectUrl(string.Empty, false);
    >
    >
    > ---
    > Dominick Baier, DevelopMentor
    > http://www.leastprivilege.com
    >
    > > The "FormsAuthentication.GetRedirectUrl()" function takes two
    > > parameters:
    > > - username
    > > - createPersistentCookie
    > > I don't know *why* the function needs these parameters to tell me what
    > > the original URL had been that had been requested before the user was
    > > redirected to the Login page.
    > >
    > > Is there any simple way to extract the information for what that URL
    > > had been *without* having to provide these parameters? What do they do
    > > anyway?
    > >
    > > Alex
    > >

    >
    >
    >
     
    Alex Maghen, Sep 10, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mariam
    Replies:
    9
    Views:
    2,078
    Hermit Dave
    Jan 11, 2004
  2. =?Utf-8?B?c3Rzb25n?=

    1.x FormsAuthentication.GetRedirectUrl doesn't redirect

    =?Utf-8?B?c3Rzb25n?=, Apr 10, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    1,190
    =?Utf-8?B?c3Rzb25n?=
    Apr 10, 2006
  3. Joe
    Replies:
    3
    Views:
    530
    Steven Cheng[MSFT]
    Feb 15, 2008
  4. Rafi
    Replies:
    0
    Views:
    128
  5. Brian Adkins
    Replies:
    1
    Views:
    249
    Brian Adkins
    Feb 24, 2004
Loading...

Share This Page