FormsAuthentication.GetRedirectUrl()

D

Dominick Baier

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);
 
A

Alex Maghen

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
 
A

Alex Maghen

How... amusing! Thanks.

Dominick Baier said:
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);
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top