aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/No___34__sid__34___in_forms_resulting_in_Error:_Your_login_session_has_expired..mdwn
blob: fb0885e90f29abbad46e93a9a1f59ad380fbcbcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Logged in and edited in textbox. Clicked preview and then clicked Save Page and it errored with:

Error: Your login session has expired.

I also did same without preview and got same error.

I added debugging to print the sid and session->id on the error. The sid was empty. The session->id was a long value (maybe base64).

View source of editing page or preview+edit page shows no "sid" input value. (I do see it when editing here in your ikiwiki site, but not on mine.)

> Further info. In the "prefs" dialog, it does have hidden "sid" defined. Viewing HTML source also shows this is in the  fb_hidden class and Generated by CGI::FormBuilder v3.0501. I tried multiple times and never see "sid" in the HTML source of editing a page. --[[JeremyReed]]

>> Found problem: Needed to update my editpage.tmpl to add TMPL_VAR FIELD-SID. This bug can be closed once that is documented -- and that documentation is obvious to find.