Error Which CommonUserName

Hi all,

I m very strange about why such silly error occured, pls help me.

I have created web based application. In which first database has anonymous access. Once user submit this form a doclink goes to notes user. When this user open him mail box onto the web browser to open doclink it prompt its login id and password. he sucessfully get loged into the system. when he open doc link at document there is a field current user. which show current loged in user. but when he opens the document this field show “Anonymous”. and if I click on to the button in which i have written an agent I have written session.commonuserName it throws server name I don’t know why…

Is there any mistake…

The code is : -

Dim se As New NotesSession

Dim namesdb As NotesDatabase 

Dim doc As NotesDocument

Dim memo As NotesDocument

Dim db As NotesDatabase

Set db=se.CurrentDatabase

Msgbox se.CommonUserName ’ This return current server 'ServerXyz

pls help

Thanks & Regards,

Vikas K Sinha

Subject: Error Which CommonUserName

That’s what CommonUserName is supposed to return on the web – it says so in the documentation. To get the remote user, use session.EffectiveUserName (which returns a canonical name – you’ll need to create a NotesName to get the common name) and make sure the agent is set to run as web user.

Subject: Error Which CommonUserName

You could use the Remote_User CGI variable.