Hi There,
I have started working on lotus notes web based application recently. I have following questions,
-
I have one of the application where user gets authenticated via domino custom login page, I want to display user’s name who logs in after successful authenication? How can I show the user name after successful authentication? I have tried using formula, @Name function, but it’s not showing the name of the user.
-
I am showing a button, “Log out” on a page which opens up after authentication, if user clicks on it, it should open a main login screen. I did created a button and wrote a javascript code like this,
parent.location.href = “http://IP Address/database/Logout?OpenFrameset”, It does opens the login page but user can still go to previous page by just clicking on “BACK” option from IE browser. I am confused why it is happening like that?
Thanks in advance.
Subject: Show username after authentication on web
I see you got your answer to number one. As for number two, the answer is caching. When you hit back you’re seeing a cached copy of that page. Try to click on any links and, unless the target is also in your cache, they should get the login page. If you want to kill the cache there is more to do than simply sending the logout url. I’d look at the webmail template for pointers on that.
Subject: @Name works fine on the Web after Login’s. Something else must be wrong.
This is code we use in our $$ViewTemplateDefault form to show status. @V3UserName is used instead of @Name([Abbreviate]; @UserName).
“<span class="loginText" style="font-family: Verdana; font-size: 7pt">” + @If(@UserName = “Anonymous”; "You are not currently logged in. " + LoginLink; “You are logged in as ” + @V3UserName + ". "
Subject: RE: @Name works fine on the Web after Login’s. Something else must be wrong.
After I posted the questions, I tried couple of other ways, and it worked. Strange behaviour. I created one field, field1 with formula, @UserName, and created another field2, with formula, as value from “Field1”, and it worked. I will definitely try your code, and see how that works.
Thanks
Biren