Skip to topic
|
Skip to bottom
Jump:
TWiki
*
TWiki
Welcome
Register
TWiki Web
TWiki Web Home
Changes
Topics
Index
Search
TWiki Webs
Acheson
Benedict
Breau
Busse
Cantelon
Craighead
Dafoe
Eayrs
Fogan
Locations
Main
McPhail
Miller
Mills
Morris
Pardo
Smith
TWiki
Tutorial
Webber
Weber
Edit
Attach
Printable
TWiki.LogoutAndLogin
r1.1 - 06 Nov 2006 - 20:05 - Main.guest
topic end
Start of topic |
Skip to actions
| *NOTE:* | This topic is not part of the official TWiki distribution | ---+ Logout and Login <!-- The following spreadsheet magic outputs text conditionally based on view/viewauth and guest/not guest --> %CALC{Hello [[%WIKIUSERNAME%][$PROPERSPACE(%WIKINAME%)]], you are using IP address %REMOTE_ADDR%. <p />%T% $IF($EXACT(%WIKINAME%, TWikiGuest), $IF($FIND(auth, %SCRIPTNAME%), You are logged in as =TWikiGuest=. Please restart your browser if you want to login with your own account., You are currently not logged in (try to [[%SCRIPTURL%/viewauth%SCRIPTSUFFIX%/%WEB%/%TOPIC%][login]]); or you are logged in as =TWikiGuest= (in which case you need to restart your browser if you want to login with your own account).), $IF($FIND(auth, %SCRIPTNAME%), Please restart your browser if this is not you., If you are not $PROPERSPACE(%WIKINAME%) please [[%SCRIPTURL%/viewauth%SCRIPTSUFFIX%/%WEB%/%TOPIC%][login]] (you might share the IP address with someone else)))}% ---++ Background Information TWiki.org uses BasicAuthentication with IP address based session tracking. The advantage is that there is a very low requirement on the client side. Any browser is supported, even those without cookies. There is a drawback however. IP address based session tracking fails if people share an IP address, e.g. a whole company might expose just one IP address through a NAT. In this case TWiki.org might tell you that you are someone else in your organization. -- Main.PeterThoeny - 12 Feb 2005 ---++ Discussions Why are we not using what I suggest in Codev.RememberUserBug? -- Main.SvenDowideit - 12 Feb 2005 That approach seems to have a drawback, see my reply in Codev.RememberUserBug. -- Main.PeterThoeny - 12 Feb 2005 Changed the view/not guest message because I didn't like the grammar of "not me?" and "not you?" seemed a bit impolite. -- Main.SamHasler - 12 Feb 2005 Curious, is there a way that I can implement this same functionality on my TWiki.TWikiSites ? I run two twikis, personal and at the office, and both of them often receive requests for a logout feature. Thanks ! -- Main.KeithHelfrich - 03 May 2005 This topic is not part of the distribution, but you can copy the text into your own TWiki installation. No magic here, simply a link to =viewauth= to re-authenticate a user (this is not a logout). -- Main.PeterThoeny - 04 May 2005 -- Main.JasonBenedict - 03 Nov 2005
to top
End of topic
Skip to action links
|
Back to top
Edit
|
Attach image or document
|
Printable version
|
Raw text
|
More topic actions
Revisions: | r1.1
|
Total page history
|
Backlinks
You are here:
TWiki
>
LogoutAndLogin
to top
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback