Forms based authentication pointing at a different URL

S

Scott Vercuski

Everyone,

I have a question about forms based authentication. Can the
loginURL point at a different server than the current one?

Example: A typical forms based authentication line in a web.config
<authentication mode = "Forms">
<forms name="ProgAspNetCookie" loginURL="/login.aspx">
</authentication>

can I do something like ....

<authentication mode = "Forms">
<forms name="ProgAspNetCookie"
loginURL="http://www.somewhereelse.com/login.aspx">
</authentication>

and have it return an authentication cookie that I'm currently
using?

Thanks in advance for any help.

Scott Vercuski
 
C

Chris Jackson

You can't access a cookie from another web site, so you wouldn't be able to
offload this to another site.

http://wp.netscape.com/newsref/std/cookie_spec.html

However, you could set up a system whereby you post back and authenticate
using another mechanism, much like Passport does. It just wouldn't be forms
authentication with all of the built-in support for it.
 

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

Forum statistics

Threads
473,787
Messages
2,569,629
Members
45,332
Latest member
LeesaButts

Latest Threads

Top