Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to implement a stateless server. I'm using LAMP with Php but when I connect to the facebook server using facebook connect. Wouldn't it return a facebook session to me which my server will mantain. Does that remove the whole point of being stateless?

Basically I want to have multiple application servers and a dumb load balancer which just sees the number of people connected to the server not who is connected to a server.

share|improve this question
3  
Sorry, but what? –  Zoredache Jun 16 '10 at 17:16
    
I second Zoredache-what good is it for your application to know how many people are connected, but not who, if it's to serve information specific to those people? –  Bart Silverstrim Jun 16 '10 at 17:19
    
I don't know if you want stateless for that. It seems as if you almost want shared state (store sessions in Memcached or MySQL for example)... Either that, or you are planning on using REST which would by definition be stateless (and hence would require closing any sessions that were opened as a result of the call at the end of the call)... So basically I second Zoredache with the question as worded... –  ircmaxell Jun 16 '10 at 17:23
    
The thing I don't want to do is have a intelligent load balancer who knows which user is connected to which server. For this I need a stateless server ( atleast in my head ) I also need user information from facebook. So thats basically the scenario :) –  Fahim Akhter Jun 17 '10 at 13:29
    
Sifting through that confused jumble of words all I can make out is a programming question - if that. –  John Gardeniers Jul 12 '10 at 12:06

2 Answers 2

have a look at the documentation: http://developers.facebook.com/docs/guides/web#login

Basically, once your user has been logged via facebook connect, facebook send you a cookie with the user session in it. Then it's just up to you to link the user in your application with the facebook user passed in the FB cookie. Your load balancer has nothing to do in the process, since everything is on application side.

share|improve this answer

Fahim, I kind-of, sort-of get where you're going on this; have you come across Zeus's ZXTM product? we use them extensively for a lot of things and they might be capable of doing what I think you're for some reason trying to do.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.