I understand thats a good idea. But what if the user donĀ“t logout, than the
database entry never be killed or i missunderstand something?
Could i kill that entry if he only close the browser and not logged out`?



2010/8/16 Hashim Ikram <l050...@gmail.com>

> Hi,
> I think you should use database for this problem as,
> create a table to keep info about logged in users, when a user log in
> insert a row in that table having information about user,ip-address and log
> in time etc.
> when a user log-out delete the row against that ip-address.
> One the other app which is dealing with chat, connect to that database and
> check that is there any session entry against that ip-address if yes then it
> means the user is logged in else not logged in.
>
> Regards
> Hashim Ikram
>
> On Mon, Aug 16, 2010 at 12:51 AM, Davor Ilic <webfa...@gmail.com> wrote:
>
>> Hi,
>>
>> does anyone know an answer for my issue?
>>
>> thanks
>>
>> 2010/8/11 Davor Ilic <webfa...@gmail.com>
>>
>> Hi,
>>>
>>> how i can use sessions in cake. My problem is i have two different apps
>>> on my webserver runing.
>>>
>>> With the one the user can registrate and login. And this one crates an
>>> session.
>>>
>>> Now the other app an chat would call with popup. My problem here is how
>>> to call the session which is seted by the other weblogin.
>>>
>>> I need now to know which session is set for the user to use it for my
>>> chatapp, how i call the session from other webapp.
>>>
>>>
>>>
>>  Check out the new CakePHP Questions site http://cakeqs.org and help
>> others with their CakePHP related questions.
>>
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>>  more options, visit this group at
>> http://groups.google.com/group/cake-php?hl=en
>>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to