Hey, thanks for the tip - just few more questions:
1. what exactly is the "user ID"? is it unique for
each computer (like the IP address..) because if it's not it cant'
work

2. how do I get the UID of the user using opensocial API?

3. one last thing, my applet, as well as my server are written in
java.
any code sample you can give me for retrieving it in java?


thanks...
(I know that question 3 can be googled :) so it's not that critical,
but what is are questions 2 and 3, because if the UID is just like the
IP
address, that is - unique, and I can retrieve it in orkut, which I
can't do the same with an IP address like you said, then it really
solves my problem)


On 5 ינואר, 07:57, "Prashant Patil­"
<prashantpandurangpa...@gmail.com> wrote:
> Hi
> Kogan
> instead of working with IP work with UID
>
> say every time while sending information from user side to send value of UID
>
> you can retrieve UID of app owner . and send it validate it and treat its
> XYZ user
>
> like
> e.g in php
> get method for your app iframe.
> <?phphttp://www.mappdir.com/index.php?authuid=4535345435453645//
> $uid = $_GET['authuid'];
> //do some logic process here e.g display his data from text file.
> //which has been created while app install.
>
> if ($uid == "")
> {
> echo "U R not valid user";}
>
> else
> {
> //before this you can chk xyz file is there or not if not then deny for that
> random user.
> //display message like add app before install.
> include("$uid.txt");
>
> }
>
> ?>
>
> So no need to chk IP use UID as its unique for every user. Use api to get
> UID.
>
> i hope this will help you! even let me know!
>
>
>
>
>
> On Mon, Jan 5, 2009 at 1:59 AM, Kogan <kog...@gmail.com> wrote:
>
> > Hey Prashant, thanks for the reply. My problem is this:
> > (I'll be happy to know if there is a solution for this)
>
> > I have an Orkut application, that sends/recieves data to a server that
> > runs on my computer.
> > but, the orkut application also runs an applet (opening it in a simple
> > Iframe). This applet also talks to this server
> > (but of course requests coming from the applet are treated with
> > another class then the ones coming from the orkut app).
> > this applet (that the orkut application runs) and the orkut app
> > "itself" runs of course on the same computer
> > of a certain user that loged in to the application.
>
> > Now, when my server gets requests from the applet and from the orkut
> > app it self -
> > I NEED TO KNOW IF THEY ARE FROM THE SAME COMPUTER/USER....
>
> > that is, if a second user logged in my orkut app, and HIS applet now
> > requests information from my server
> > I need to know that this is not the applet of the first user that
> > logged into my application.
>
> > because the applet and the orkut app run on the same computer, I could
> > easily do that if I
> > could get the IP address of the user that logged into my Orkut app
> > (the IP of the applet is easy..)
>
> > Hope I made my self clear - what I need is to make sure the the
> > request that was now recieved from
> > a certain applet, and the request that was made from the orkut app,
> > that were both made from the same user -
> > I need to know it some how !!!
> > (and I thought simply to compare IP addresses..(
>
> > Thanks :)
>
> > On 31 דצמבר 2008, 15:37, "Mayur somani" <somani.ma...@gmail.com>
> > wrote:
> > > Hey Prashant,
>
> > > Is there any way to get profile information of the visitors in an orkut
> > app?
> > > Please help if you can...
>
> > > Thanks.
>
> > > On Wed, Dec 31, 2008 at 7:04 PM, Prashant Patil­ <
>
> > > prashantpandurangpa...@gmail.com> wrote:
> > > > Hi above disclosing viewers IP address is not allowed as per privacy
> > policy
> > > > of google.
> > > > [as per my know how! ] So if you want to keep trace of visitors / app
> > user
> > > > you can use any online counters or own made php counter inside 1x1 size
> > > > iframe.
> > > > e.g
> > > > <iframe src="www.orkutfans.com/tarceusers.php" width="1"
> > > > height="1"></iframe>
> > > > inside your  app! xml!
>
> > > > On Wed, Dec 31, 2008 at 7:00 PM, Kogan <kog...@gmail.com> wrote:
>
> > > >> Hello,
> > > >> I have a small problem which seems simple but I couldn't get it to
> > > >> work.
> > > >> I need to get my the application's viewer IP address.
> > > >> (the user who is currently using my application)
>
> > > >> obviously I guess it should go inside the <javascript> tags, but
> > > >> things I tried simply didn't
> > > >> work and the application didn't do anything. For example I tried
> > > >> something like that -
>
> > > >> var Inet = Packages.java.net.InetAddress
>
> > > >>  var ip = Inet.getLocalHost();
> > > >>  var ipStr = new java.lang.String(ip.getHostAddress());
>
> > > >> and it didn'r work for some reason though I found it in a good forum
> > > >> in google..
> > > >> (maybe I tested it incorrectly on Orkut)
>
> > > >> Does anybody have a working piece of code?
> > > >> Is that even possible in an Orkut application ?
> > > >> it's the last stage and then my application will be ready for work! :)
>
> > > >> Thank you,
> > > >> Kogan.
>
> > > > --
> > > > With best Regards.
> > > > Prashant aka Orkuteer
> > > >http://en.blog.orkut.com/2007/11/thanks-from-orkuteer.html-הסתר<http://en.blog.orkut.com/2007/11/thanks-from-orkuteer.html-%D7%94%D7%...>טקסט
> > > > מצוטט-
>
> > > -הראה טקסט מצוטט-
>
> > On 31 דצמבר 2008, 15:36, "Prashant Patil­"
> > <prashantpandurangpa...@gmail.com> wrote:
> > > And let me know for what purpose you need to display IP so will help you
> > > more for the same!
>
> > > On Wed, Dec 31, 2008 at 7:00 PM, Kogan <kog...@gmail.com> wrote:
>
> > > > Hello,
> > > > I have a small problem which seems simple but I couldn't get it to
> > > > work.
> > > > I need to get my the application's viewer IP address.
> > > > (the user who is currently using my application)
>
> > > > obviously I guess it should go inside the <javascript> tags, but
> > > > things I tried simply didn't
> > > > work and the application didn't do anything. For example I tried
> > > > something like that -
>
> > > > var Inet = Packages.java.net.InetAddress
>
> > > >  var ip = Inet.getLocalHost();
> > > >  var ipStr = new java.lang.String(ip.getHostAddress());
>
> > > > and it didn'r work for some reason though I found it in a good forum
> > > > in google..
> > > > (maybe I tested it incorrectly on Orkut)
>
> > > > Does anybody have a working piece of code?
> > > > Is that even possible in an Orkut application ?
> > > > it's the last stage and then my application will be ready for work! :)
>
> > > > Thank you,
> > > > Kogan.
>
> > > --
> > > With best Regards.
> > > Prashant aka Orkuteerhttp://
> > en.blog.orkut.com/2007/11/thanks-from-orkuteer.html-הסתר<http://en.blog.orkut.com/2007/11/thanks-from-orkuteer.html-%D7%94%D7%...>טקסט
> >  מצוטט-
>
> > > -הראה טקסט מצוטט-
>
> --
> With best Regards.
> Prashant aka 
> Orkuteerhttp://en.blog.orkut.com/2007/11/thanks-from-orkuteer.html-הסתר טקסט 
> מצוטט-
>
> -הראה טקסט מצוטט-
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to