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

Forum OpenACS Development: Re: ad_conn isconnected

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.