Running Agent

Hi! All,

Is there any way to restrict anonymous user to run an agent. If Anonymous user trying to execute first of all it prompt for login and if it get successful then it runs…

Please Help

With Regards,

Vikas K Sinha

Subject: Running Agent

I’ve never done this… But how about having the agent check to see what @UserName (or the CGI variable) is set to, if Anonymous, then rerun the agent with the &login paramter attached???

I’m just not sure if you will get a recursive loop?

ans = evaluate( { @UserName }, doc )

if ans(0) = “Anonymous” then

print “[url info&login]”

exit sub

end if