Along these lines, I can't find anything in the docs that say exactly what constitutes the user being logged in. What does that check box look for?
Also, I thought it might be something to do with: p_web.ValidateLogin() but I can't find any reference to how this is used either, except for example 7, but it doesn't say how it works.