Hello to everybody,i have a problem in web DB.
All people must reader and write a document (Anonymous access Editor), but if you have a particolar Role in ACL you must see some botton in View.
The problem is the login for these particolar users.
I create a botton “Access Reserved” that open db with login=1 in URL, then ask me user and password, open correct form but the user is anyway Anonymous, not the real user (with login).
I need that if you insert user and password, the user isn’t Anonymous.
If I deny access Anonymous, the login Ask suddenly user registration and use login user in db, but the other people don’t have access to db.
Subject: Login in web problem
I couldn’t understand your requirement fully. Is it like this: - Anonymous users have editor access.
- “Access Reserved” action button should ask for user login, validate the Roles defined for this user, and perform an action only if user has a particular action.
To see if a logged in user has ‘SpecialRole’ use following formula - quoted from Designer help:
This code, if added to the New Document action button of a database that has the Enforce a consistent ACL across all replicas checkbox selected on the Advanced tab of the ACL Properties box, opens the Manager form if the [Manager] role is assigned to the current user; otherwise it open the Employee form in a Notes application.
@Command([Compose];“”;@If(@IsMember(“[Manager]”;@UserRoles);“Manager”;
“Employee”))
And don’t feel bad in presenting anounymous user with login prompt if they click around too much.
Regards
Litty Joseph
Subject: RE: Login in web problem
Yes, you understand!I have just done that you write.
My problem is that when i click on Button for login, i insert a user that have this role, but system does continue to see as Anonymous user.
What can i do?
Tank’s a lot
Subject: RE: Login in web problem
Try the logout url command. Then the system will clear the login cookie(?) and treat the user as Anonymous.
Logout command
You can specify a default logout time period to log the Web client off the server after a specified period of inactivity. This forces the cookie that Domino uses to track the user session to expire. Automatically logging a user off the server prevents others from using the Web client to impersonate a user if the user leaves the workstation before logging off. If you enable session-based name-and-password authentication for a server, users can also append ?logout at the end of a URL to log off a session.
Syntax
http://Host/DatabaseDirectory/DatabaseFileName?Logout
http://Host/DatabaseDirectory/DatabaseFileName?Logout&RedirectTo
Regards
Litty Joseph
Subject: Login in web problem
Ok, in this way it’s run, but not always.I think i’ve refresh problem becouse i have “Modify” button, in form, visible for [Manager] role.
I have a different view that show the same form and if i open document from one view i find “Modify” button, but not from other view.
I have this hide formula in button:
!@IsMember(“[Manager]”;@UserRoles)