Home
The Toolkit for Online Communities
17707 Community Members, 0 members online, 2412 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Development : ad_conn isconnected : One Message

Forum OpenACS Development: Re: ad_conn isconnected

Collapse
3: Re: ad_conn isconnected (response to 1)
Posted by Tilmann Singer on
ad_conn isconnected checks wether the running code is being called from within a connected thread or a scheduled procedure that runs without a connection. If you want to check if the user is logged in use something like auth::get_user_id - if it returns 0 then the user is not logged in.