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.)
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"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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").
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
biblio/submitlogin.py 1.4 committed.
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"
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").
biblio/submitlogin.py 1.5 committed
Implemented in biblio/submitlogin.py 1.6, installed in r2013-57 on 2013-03-10.