sirin k

Nintriva Wireless

0 notes

Get notified about the status of a Facebook user in your web app using periodic Ajax calls.

hello, This article is helpful only if you have the following situation: A web app which uses facebook login to login its users and if a user is logged out from his/her facebook account through another browser tab, then your app dont know that he is logged out out or not from his facebook account and he/she will remain as logged in your web application.Its ok if you have no problem with this situation.But if you want to forcefully logout the user from your application if he is logged out from his facebook account means you can try this example.This example uses periodic ajax calls to facebook’s graph api to check whether the user is logged in or not.


You can see the source code in my yii wiki section:http://www.yiiframework.com/wiki/376/get-notified-about-the-status-a-of-facebook-user-in-your-web-app-using-periodic-ajax-calls/

Sirin k
Nintriva Wireless 

0 notes

Storing your images in your table’s blob field and displaying that stored images

Here im giving you a very simple example ie how you can store an image to your blob field in a table.Hope you already familiar with the normal image upload.

First im going to tell you the necessary steps you need to carry out to store an image into your blob field.

Let me explain these 7 steps ,

to see an example of 7 steps see my wiki article in www.yiiframework.com here:
http://www.yiiframework.com/wiki/332/storing-your-images-in-your-table-s-blob-field-and-displaying-that-stored-images/
-Sirin