Session lost, program go to login.aspx, but not the one in root.

J

Jack

To whom may concern:

1. Web.config
<authentication mode="Forms">
<forms name=".Portal" protection="All" timeout="3600"
loginUrl="Login.aspx" />
</authentication>

2. The "Login.aspx" is in root of a virtual path, but I'm visiting a
sub path, and now session lost, so program will redirect to login page,
but the url is like:
http://localhost/myproject/subpath/login.aspx?ReturnUrl=xxxx.

What I need is: http://localhost/myproject/login.spx?ReturnUrl=xxxx

How to config this?

Thanks in advance!
Jack
2005-10-26
 
S

Sergio

Try it:(add slash before Login.aspx in loginUrl attribute)
<authentication mode="Forms">
<forms name=".Portal" protection="All" timeout="3600"
loginUrl="/Login.aspx" />
</authentication>
 

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,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top