Question
WIKINAME (TWikiGuest) always shows up as TWikiGuest, even though I have to log in to edit the page to type it:
- choose edit page
- login as FooBar
- put WIKINAME variable in
- save it
'TWikiGuest' shows up, but I would expect 'FooBar' to be the wiki name.
It shows that the page was edited by FooBar, and it doesn't ask for authentication if I edit the page again (implying I'm already logged in)
Does anybody know why this happens?
Environment
--
TWikiGuest - 11 Feb 2005
Answer
view is not authenticated, so the server doesn't ask who you are when you view a page. If you change view in the URL to
viewauth then WIKINAME should reflect your login name.
Does that make sense to you?
--
MattWilkie - 12 Feb 2005
What you see is expected behaviour of
BasicAuthentication when the view script is not authenticated. If you want to have the user recognized in view, you can add the view script to the authenticated scripts (with some drawbacks). Alternatively use session tracking. This can be done with partial authentication (see
TWikiUserAuthentication), or with cookie based session tracking (with a session Plugin).
--
PeterThoeny - 12 Feb 2005
If I change view to 'viewauth' it works, but as soon as I click on any link it goes back to the 'view' script for that page. Is that correct behavior?
Is tracking by IP address the only way to get this work? Or am I supposed to copy viewauth to view for this to work site-wide?
Thanks for the answers, and your time.
--
AaronBrady - 14 Feb 2005