Menu

#369 Automatically redirect after login

closed
Uzume
5
2013-03-11
2012-11-28
Ahasuerus
No

When a user logs in, the software displays a "continue to XXX.cgi" link. We want to redirect users to that page automatically (as long as JavaScript is enabled.)

Discussion

  • Nobody/Anonymous

    biblio/submitlogin.py 1.4 committed.

     
  • Uzume

    Uzume - 2013-03-09

    This could actually be done much more portabily using an HTTP header redirection.

    For example just print this as the first two lines of output (before the cookies are set):
    Status: 303 See Other
    Location: <URI>

    This should work for any HTTP 1.1 client (regardless if Javascript is supported or not) and could potentially even be made to work with HTTP 1.0 clients if the status code is changed to "302 Found"

     
  • Uzume

    Uzume - 2013-03-09

    In fact, supposing the use of Javascript, one could make a login and logout that did not even change the page you were on at all (all done via "Ajax").

     
  • Uzume

    Uzume - 2013-03-09

    biblio/submitlogin.py 1.5 committed

     
  • Ahasuerus

    Ahasuerus - 2013-03-11

    Implemented in biblio/submitlogin.py 1.6, installed in r2013-57 on 2013-03-10.

     
  • Ahasuerus

    Ahasuerus - 2013-03-11
    • assigned_to: nobody --> uzume
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB