[Seaside] retaining a session across redirect - a retooling of yesterday's question..

Jon Paynter kittle31 at gmail.com
Thu Oct 4 17:34:27 UTC 2012

On Thu, Oct 4, 2012 at 10:17 AM, sergio_101 <sergio.rrd at gmail.com> wrote:

> > What parameters are available from facebook?  is there a way to add a
> custom
> > token/value/etc to post you get back from facebook?  If so, you can use
> that
> > to look up the correct user session.  Or is there some existing
> > facebook-user value you can use for a lookup?
> oh! this might be the way to do it.. i would imagine you could add
> some params on the end of the url..
> i also get a userId back on a successful authorization..
> maybe i can set the userId on the session..
> then, i could do something like:
> SBSession allInstances select [ :session | session userId =
well allInstances can be unreliable -- especially if the user is trying to
login many times, and in some cases very slow.  maybe something like:
SBSession pendingUsers at: fbUserId put: session.

then later on:

self session: (SBSession pendingUsers at: fbUserId).

But it sounds like your on the right track
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20121004/dc62607e/attachment.htm

More information about the seaside mailing list