|
|
|
|
|
|
|
|
|
|
|
|
|
|
How to use cookies with Notes and the Web (continued)
Authenticating a cookie A function called CheckCookie is included in the database, inside a script library called WebAuthentication. This script library, or the code inside it, can be copied to any other database requiring Notes/Web session authentication. To authenticate in a Web agent, simply call this function and test the result for true (authentication succeeded) or false (authentication failed). Here's the function:
' In Declarations, declare the script library
Use "WebAuthentication"
' In main code, make authentication
If CheckCookie("MyServerName","NWAuthen.nsf",Cookie$) Then
' successful authentication
Else
' failed authentication
End If
|
A sample Web agent, called SampleWebAgent, is included which accepts an &X parameter from a Web browser, calls the CheckCookie() function and reports whether authentication succeeded or failed.
In order to run this sample agent from the Web, you must first sign the database with your own signature and set the rights for user anonymous to Reader. This is a simple administrative task. If you don't have a Notes administrator on hand, it can also be accomplished by simply editing the agent (even if the change is only adding a line) and saving it again.
DominoPower Contributing Editor Jeffrey R. Burrows has been working with Notes for several years and Domino since its beta cycle and is currently implementing Notes and Domino solutions for the local government in Scotland. His web site experience stretches back to 1992. He still maintains the popular rec.travel guide to Morocco--with a trusty DOS editor. Jeffrey can be reached via email at jey@compuserve.com.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Advertisement --
Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done.
Native to Lotus Domino. The User Experience unseen for Lotus Domino.
Do more with less. Really.
See the possibilities Docova unleashes for Lotus Domino. |
-- Advertisement --
Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.
Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).
Tap here to get started! |
|
|
|
|
|
|
|
|
|
|