471,337 Members | 1,180 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

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

To whom may concern:

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

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:

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

How to config this?

Thanks in advance!

Nov 19 '05 #1
2 1164
Try it:(add slash before Login.aspx in loginUrl attribute)
<authentication mode="Forms">
<forms name=".Portal" protection="All" timeout="3600"
loginUrl="/Login.aspx" />

Sent via .NET Newsgroups
Nov 19 '05 #2
Doesn't work.
It will go to:

If I set loginUrl="/MyProject/Login.aspx" or "~/Login.aspx", it will
also go to:

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by l-touched | last post: by
8 posts views Thread by Radu Colceriu | last post: by
13 posts views Thread by Alexander Widera | last post: by
3 posts views Thread by na | last post: by
25 posts views Thread by =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post: by
3 posts views Thread by =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post: by
6 posts views Thread by =?Utf-8?B?UGF1bA==?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.