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

Discussion in 'ASP .Net' started by Jack, Oct 26, 2005.

  1. Jack

    Jack Guest

    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
     
    Jack, Oct 26, 2005
    #1
    1. Advertising

  2. Jack

    Sergio Guest

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

    --
    Sent via .NET Newsgroups
    http://www.dotnetnewsgroups.com
     
    Sergio, Oct 26, 2005
    #2
    1. Advertising

  3. Jack

    Jack Guest

    Jack, Oct 26, 2005
    #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. Replies:
    0
    Views:
    1,279
  2. Jeff
    Replies:
    0
    Views:
    358
  3. Alvin Bruney [MVP]

    Re: lost session values, not Session

    Alvin Bruney [MVP], Mar 2, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    440
    Alvin Bruney [MVP]
    Mar 2, 2004
  4. frekster
    Replies:
    1
    Views:
    987
    frekster
    Sep 14, 2005
  5. Jack
    Replies:
    1
    Views:
    812
Loading...

Share This Page