Forum OpenACS Q&A: Should [ad_conn isconnected] return true in scheduled procs?
Note that this information is only available if you have a
connection. A common error is to include this within a scheduled
procedure that runs when no connection is available.
By the way, I tried to add this to the ad_conn documentation in api-doc, but I didn't have permission to commit it. If anybody else wants to commit that blurb in
One other thing is that you should be able to call ad_conn locale outside a session, but maybe something in the i18n stuff snuck in to break that.