[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

Displaying a document on the web site

How can I display specific document
on the web site according to the person authenticated to the database?
I know I can use:
@URLOpen("http://host/database/view/Document?OpenDocument ") where Document can be a key. The problem is that the key isn't
permanent but changes according to the user authenticating to the database.
How can I still get this parameter from the user(user's name)and display the appropriate document using this formula?
(or is there another way to do that?)
0
twg
Asked:
twg
1 Solution
 
dbbohlinCommented:
You have a couple of possiblities for solving the issue.

First of all you can use Cookies to load in the Users name and redirect them to the approprate document.  Use the WebQueryOpen on a default form and then redirect them to the document you want.  For more information on using Cookies with Domino try WWW.gettips.com, WWW.lotus411.com and the Lotus Developer discusion groups.

If you don't want to use Cookies then you are going to have to force a login on the user.  Set the ACL on your database to Anonymous = NoAccess.  This ensures that everyone will have to login in to access the database.  Next either use the Session Based login available on the Domino Server to redirect them to a login page which will have the approprate logic to open the document for them, or else once again have a default form the will use the $$Return and JavaScript to redirect onLoad or the WebQueryOpen event to redirect.

Hope this helps.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now