Hello, Im Martin, and im doing a system in a social network (That has
the plataform of Opensocial) of question and answers like blurit.com.

Yesterday i learn to show the ID of the user by the API of the
opensocial in Javascript.

/////////////////////////////////////////////////////// This Function
gives me the ID of the
users //////////////////////////////////////////
function callback(response) {

var responseViewer = response.get("viewer").getData();

 var id = responseViewer.getField(opensocial.Person.Field.ID);


   document.getElementById("main").innerHTML = id;

}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

I have make a lot of system in PHP of messages and photos that i use
$_SESSION[name].

But now im getting the USERID by a javascript function, and i want to
transfer the information of the javascript var to a php var, to make
the $_SESSION.

I read a lot of webs, and i can make this with COOKIES (but the
cookies can be modified, its to insecure). I make the cookie with
javascript and then i get it with php reading the coopie.

If i make it with cookies, the user can edit the cookie with Cookie
editor, and a user can change the USERID of the cookie.

So I dont know how to make it.

If someone know something i want very happy.
A lot of thanks, Martin D

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

Reply via email to