[Vtigercrm-developers] Session sharing with external script

Nicolas Larcipretti niclarcipretti at gmail.com
Wed Sep 14 04:50:49 PDT 2011


Well, I don't know if that will do the trick for you, but, take a look at
the vtiger_loginhistory. There, you'll find the "logout_time" field, if it's
values is 0000-00-00 00:00:00 means that the user didn't log out, so, I
think you could tell that the session is still active.

Cheers

Nicolas

2011/9/13 Richard Hills - TechnologyWise <richard at tw.co.nz>

> **
> Although this was true, it did not help as I still need to know where to
> look in the database to verify if the session is still active. I have not
> looked further into this issue at the moment so will need to do that in the
> future, if anyone knows where this information is stored that would be
> beneficial to me.
>
> Thanks
>
>
> On 14/09/11 09:41, Nicolas Larcipretti wrote:
>
> Did that help? Please, let me know if it did ;)
>
>  Cheers
>
>  Nicolas
>
> 2011/9/5 Nicolas Larcipretti <niclarcipretti at gmail.com>
>
>> Hi,
>>
>>  You could capture the user session ($_SESSION) and use the
>> "authenticated_user_id" attribute, that is the userid from the logged in
>> user.
>>
>>  Hope this helps you.
>>
>>  Cheers
>>
>>  Nicolas
>>
>>
>> 2011/9/5 Richard Hills - TechnologyWise <richard at tw.co.nz>
>>
>>> I am developing a script which sits on the same webserver as our vtiger
>>> installation and needs to look at the logged in vtiger user data, can
>>> someone please give me a quick example of how this is best done?
>>>
>>> All I need to know from vtiger is the userid which the user is currently
>>> logged in as, the rest I will do with direct database queries rather
>>> than using a vtiger specific API.
>>>
>>> Thank you.
>>>
>>> --
>>> Richard Hills
>>> TechnologyWise Ltd, Tauranga, NZ
>>> richard at tw.co.nz
>>> www.technologywise.co.nz
>>> ph: +64 (0)7 571 1060 <%2B64%20%280%297%20571%201060>
>>> fax: +64 (0)7 571 1061 <%2B64%20%280%297%20571%201061>
>>>
>>> _______________________________________________
>>> http://www.vtiger.com/
>>>
>>
>>
>
> _______________________________________________http://www.vtiger.com/
>
>
>
> --
> Richard Hills
> TechnologyWise Ltd, Tauranga, NZ
> richard at tw.co.nzwww.technologywise.co.nz
> ph: +64 (0)7 571 1060
> fax: +64 (0)7 571 1061
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20110914/8fdf756a/attachment-0002.html 


More information about the vtigercrm-developers mailing list