Re: $user->isLoggedIn()
Thanks. I was coming to that conclusion myself, so I decided to use
the UserLoginComplete and UserLogout hooks to record login/logout
activity in a tmp directory that is accessible to the blog. Advice
on the security issues created by this approach is welcome!!
Jim
On Aug 31, 2007, at 4:47 PM, DanTMan wrote:
> file_get_contents won't ever work with sessions because it's the
> server
> getting contents, not the client's computer. So the session would be a
> single server session.
> User::isLoggedIn() was meant to be used with $wgUser, as in. You're
> logged in if "$wgUser->isLoggedIn();" returns true. It's not meant to
> detect if an other user is logged in, because that's a technical
> impossibility. Since you're including the WebStart, perhaps you should
> try using $wgUser.
>
> ~Daniel Friesen(Dantman) of The Gaiapedia, Wikia Graphical
> Entertainment Project, and Wiki-Tools.com
>
> Jim Hu wrote:
>> Spoke too soon. The test script responds to being logged in or
>> logged out, but calling it from a different script using
>> file_get_contents isn't working.
>>
>>
>> On Aug 31, 2007, at 2:28 PM, Jim Hu wrote:
>>
(Continue reading)