summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <http://smcv.pseudorandom.co.uk/@web>2009-08-03 06:01:50 -0400
committerJoey Hess <joey@kitenet.net>2009-08-03 06:01:50 -0400
commitb188a25e152dec8e0515b1f69bcafe67f540ca0a (patch)
tree7d9832dbf2376c90bf1135ea7b449860b9ca5e96 /doc
parent9468c553e1ee8d484e896bef4c5abbeda775cabf (diff)
can be done with Javascript?
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn b/doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn
index 04f6cc9b8..ec3ca4138 100644
--- a/doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn
+++ b/doc/forum/appear_if_you_are_login_or_not_in_a_page.mdwn
@@ -14,3 +14,11 @@ Xan.
> if at all. --[[Schmonz]]
>> Thanks a lot, Xan.
+
+>>> Another possible trick would be to use some Javascript to make a
+>>> "who am I?" AJAX request to the CGI (the CGI would receive the
+>>> session cookie, if any, and be able to answer). Obviously, this
+>>> wouldn't work for users who've disabled Javascript, but since it's
+>>> non-essential, that's not so bad. You'd need to
+>>> [[write_a_plugin|plugins/write]] to add a suitable CGI action,
+>>> perhaps ?do=whoami, and insert the Javascript. --[[smcv]]