Tres Wong-Godfrey
2008-Dec-02 00:13 UTC
[Facebooker-talk] Session Timeout With New Sessions
I''ve been seeing an hourly session regeneration from the app that I''m currently developing. Every hour, on the hour, the session ID is changed. It really only becomes evident when doing AJAX posts to the callback server. When the page is re-rendered by FB servers, the new session id is automagically inserted & everything runs as expected. When doing an AJAX query, the old session is used, so the server promptly attempts to redirect the AJAX request -- which just renders as nothing. Does anyone know why this behavior is different with the new sessions? Is there some default timeout value that has been changed? Has anyone else been seeing this behavior? Is this a new ''feature'' associated with apps that have not yet been approved? Thanks! Tres
On Dec 1, 2008, at 7:13 PM, Tres Wong-Godfrey wrote:> > I''ve been seeing an hourly session regeneration from the app that > I''m currently developing. Every hour, on the hour, the session ID is > changed. > It really only becomes evident when doing AJAX posts to the callback > server. When the page is re-rendered by FB servers, the new session > id is automagically inserted & everything runs as expected. When > doing an AJAX query, the old session is used, so the server promptly > attempts to redirect the AJAX request -- which just renders as > nothing. > > Does anyone know why this behavior is different with the new > sessions? Is there some default timeout value that has been changed? > Has anyone else been seeing this behavior? Is this a new ''feature'' > associated with apps that have not yet been approved? >Yuck. The new sessions are supposed to expire in 1 hour. I hope that''s not how they implemented them. I would file a bug on the Facebook bug tracker. It will either be fixed quickly or it will never be looked at :) Mike> Thanks! > > Tres > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
Why would AJAX use the old session? Unless the params are being added to the Javascript at parse time. Hm. -- Matthew Beale :: 607 227 0871 Resume & Portfolio @ http://madhatted.com On Tue, 2008-12-02 at 08:32 -0500, Mike Mangino wrote:> On Dec 1, 2008, at 7:13 PM, Tres Wong-Godfrey wrote: > > > > > I''ve been seeing an hourly session regeneration from the app that > > I''m currently developing. Every hour, on the hour, the session ID is > > changed. > > It really only becomes evident when doing AJAX posts to the callback > > server. When the page is re-rendered by FB servers, the new session > > id is automagically inserted & everything runs as expected. When > > doing an AJAX query, the old session is used, so the server promptly > > attempts to redirect the AJAX request -- which just renders as > > nothing. > > > > Does anyone know why this behavior is different with the new > > sessions? Is there some default timeout value that has been changed? > > Has anyone else been seeing this behavior? Is this a new ''feature'' > > associated with apps that have not yet been approved? > > > > Yuck. The new sessions are supposed to expire in 1 hour. I hope that''s > not how they implemented them. I would file a bug on the Facebook bug > tracker. It will either be fixed quickly or it will never be looked > at :) > > Mike > > > > Thanks! > > > > Tres > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk
That''s a good question. Are you using the Facebook proxy or the direct connection? I would hope the proxy would handle this. Mike On Dec 2, 2008, at 8:35 AM, Matthew Beale wrote:> Why would AJAX use the old session? > > Unless the params are being added to the Javascript at parse time. > Hm. > > -- > Matthew Beale :: 607 227 0871 > Resume & Portfolio @ http://madhatted.com > > On Tue, 2008-12-02 at 08:32 -0500, Mike Mangino wrote: >> On Dec 1, 2008, at 7:13 PM, Tres Wong-Godfrey wrote: >> >>> >>> I''ve been seeing an hourly session regeneration from the app that >>> I''m currently developing. Every hour, on the hour, the session ID is >>> changed. >>> It really only becomes evident when doing AJAX posts to the callback >>> server. When the page is re-rendered by FB servers, the new session >>> id is automagically inserted & everything runs as expected. When >>> doing an AJAX query, the old session is used, so the server promptly >>> attempts to redirect the AJAX request -- which just renders as >>> nothing. >>> >>> Does anyone know why this behavior is different with the new >>> sessions? Is there some default timeout value that has been >>> changed? >>> Has anyone else been seeing this behavior? Is this a new ''feature'' >>> associated with apps that have not yet been approved? >>> >> >> Yuck. The new sessions are supposed to expire in 1 hour. I hope >> that''s >> not how they implemented them. I would file a bug on the Facebook bug >> tracker. It will either be fixed quickly or it will never be looked >> at :) >> >> Mike >> >> >>> Thanks! >>> >>> Tres >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > >-- Mike Mangino http://www.elevatedrails.com
Tres Wong-Godfrey
2008-Dec-02 15:31 UTC
[Facebooker-talk] Session Timeout With New Sessions
Everything is being routed through the proxy. I''m using both remote_form_for and have written some javascript functions to update divs using Ajax() both are exhibiting the same problem. I''m creating a bug report. Thank you! On Dec 2, 2008, at 5:43 AM, Mike Mangino wrote:> That''s a good question. Are you using the Facebook proxy or the > direct connection? I would hope the proxy would handle this. > > Mike > > On Dec 2, 2008, at 8:35 AM, Matthew Beale wrote: > >> Why would AJAX use the old session? >> >> Unless the params are being added to the Javascript at parse time. >> Hm. >> >> -- >> Matthew Beale :: 607 227 0871 >> Resume & Portfolio @ http://madhatted.com >> >> On Tue, 2008-12-02 at 08:32 -0500, Mike Mangino wrote: >>> On Dec 1, 2008, at 7:13 PM, Tres Wong-Godfrey wrote: >>> >>>> >>>> I''ve been seeing an hourly session regeneration from the app that >>>> I''m currently developing. Every hour, on the hour, the session ID >>>> is >>>> changed. >>>> It really only becomes evident when doing AJAX posts to the >>>> callback >>>> server. When the page is re-rendered by FB servers, the new >>>> session >>>> id is automagically inserted & everything runs as expected. When >>>> doing an AJAX query, the old session is used, so the server >>>> promptly >>>> attempts to redirect the AJAX request -- which just renders as >>>> nothing. >>>> >>>> Does anyone know why this behavior is different with the new >>>> sessions? Is there some default timeout value that has been >>>> changed? >>>> Has anyone else been seeing this behavior? Is this a new ''feature'' >>>> associated with apps that have not yet been approved? >>>> >>> >>> Yuck. The new sessions are supposed to expire in 1 hour. I hope >>> that''s >>> not how they implemented them. I would file a bug on the Facebook >>> bug >>> tracker. It will either be fixed quickly or it will never be looked >>> at :) >>> >>> Mike >>> >>> >>>> Thanks! >>>> >>>> Tres >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> -- >>> Mike Mangino >>> http://www.elevatedrails.com >>> >>> >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> > > -- > Mike Mangino > http://www.elevatedrails.com > > >