Session in domino

i found prblem in programing in donino designer.

i am programing for creating workflow which has 2 users can access this workflow

user1 is requester

user2 is approver

user1 create document and then send this document to user 2 for approval but user1 still can edit this document when user2 is approving.

when 2 users access and save this document together , of course document would be conflicted so i find any function or method to use for checking at that time the system have anyone are accessing this document or no , if it have someone are accessing , another users wouldn’t can access this document so i need some function or method for check user session like session on php

so i just want to know that

does domino designer have any function for work about user session like session_start() function in php ?

if it doesn’t have those function , can i use any function or method to instead those function ? and how ?

if anybody know, pls tell me and if you don’t understand my question , pls ask me

thanks

Subject: look up notesDocument.Lock in Help

whoever gets the document first can lock it, so the other person can’t update it at the same time.

Otherwise, you can use Versioning.

Subject: @doclock function

hi Watka Naidooafter i got your message , i had tried to use @doclock function that you advised me , so i wrote this command on WebQueryOpen but when i open that document , it shown error message that

"Error 500

HTTP Web Server: Lotus Notes Exception - @Function is not valid in this context"

so i move that command to hotspot button and it shown same error.

so i have question for ask you that

how can i use this function ? do you have any idea for my work ?

my code is @DocLock([LOCK]) , is it right ?

if it’s wrong pls tell me how do i code ?

thank you very much

Subject: but I did not say @DocLock

anyway - you didn’t say you were programming for Web - try to give as much information as you can if you want to get help in the forum.

For web, you need LS, and using DocumentContext to get a handle on the document. Read Help > Web agents for more info.