|Newbie questions about Pliant
On user login
|Message posted by maybe Marcus on 2003/07/15 20:06:52
|When someone logs in at the pliant front page and then acesses the one of the
forums, the forum recognizes that the user has already logged in.
I am trying to mimic this behaviour with the fillowing code:
link "forum" "/pliant/browse/forum/coopforum/"
But it does not work. My forum does not recognize that the user has logged in. I.e.
for the forum, the user_name is still ""
|Message posted by hubert.tonneau on 2003/07/15 20:34:39
|This is not a server (Pliant) side issue, but a client (browser) one.
The browser assumes that the login is valid only for the subtree of
the page where login appends.
On Pliant site, it works because the login button is at root of the site.
The expected behaviour would be the browser to assume login is valid for
the old site, but it's not the way it is currenly implemented in various
Also, I think Patrice knows a trick to solve the problem (something like
redirect to root page with an option saying the server ask for password,
then force browser to move back)
|Message posted by maybe Marcus on 2003/07/15 21:29:13
Could you give me some pointers on how to do that?
|Message posted by maybe Marcus on 2003/07/15 21:41:18
|Another possible solution, would be to put the whole application directory inside
However, this goes against the commonly adopted procedure of putting third-party
applications in ~/pliant/
|Message posted by maybe pom on 2003/07/17 06:10:07
|(All the paths are realtive to pliant's root)
The simplest is to create a file /newlogin.page with
var Str link := options option "link" Str
var Str user := options option "user" Str
Then, to request an identification or allow to change login, put in your .page
button(shunt user_name="" "Login" "Change login" )
goto_url "/newlogin.html" options "link "+(string http_request:url_path)+" user "+(string user_name)
|Message posted by maybe pom on 2003/07/17 06:12:29
|The ideal would be that newlogin.page
could be directly handled by the server, and
that the login/change login button could be in the default.style...
|Message posted by hubert.tonneau on 2003/07/17 08:47:03
|Hardcoding a newlogin feature in the default style seems ok to me.
|Message posted by maybe Marcus on 2003/10/17 13:45:36
|Some things I have observed trying to run some of my pliant applications under
-The code posted by Patrice on 2003/07/17 06:10:07 does not work anymore in
87x25 Even after changing url_path to path
-Now, it seems that I have to provide the full path when calling a dynamic
page or even using the image instruction. I.e., instead of
execute_dynamic_page "foo.html" I have to use execute_dynamic_page "/mypath/foo.html"
I must be missing something right?