I have a problem again :). I'm using S.addAround to basically login a
user with
User.logUserIdIn(uid)
So this worked before, but since this
https://github.com/lift/framework/commit/ac241e3c647cd38b2cd6602689fe142ca31a8d4a
commit it is broken. I get the following Exception
net.liftweb.http.StateInStatelessException: setting a SessionVar in a
stateless session: net.liftweb.proto.ProtoUser$curUserId$
at net.liftweb.http.SessionVar.setFunc(Vars.scala:91)
at net.liftweb.util.AnyVarTrait$class.apply(AnyVar.scala:190)
at net.liftweb.util.AnyVar.apply(AnyVar.scala:89)
If I revert the change in LiftServlet everything is working as expected.
So my question is: Is this intended (and I have to change my code
somehow) or is this a bug?
Thanks again
Dominik
Thanks again
Dominik
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
> <mailto:lif...@googlegroups.com>.
> To unsubscribe from this group, send email to
> liftweb+u...@googlegroups.com
> <mailto:liftweb%2Bunsu...@googlegroups.com>.
sorry for the late response. I'm using LiftSession.afterSessionCreate to
check if the User should be logged in or not. But since David actually
addressed the problem here
https://www.assembla.com/spaces/liftweb/tickets/939-protoextended-session-uses-bad-construct
you should probably use his advice although my code gets executed now
only once and not every request :)
> Out of curiosity, I checked my code and I'm following this same
> pattern (using S.addAround to log a user in).
>
> David, if this approach is discontinued going forward, is there
> another recipe you'd suggest we follow? I'm currently running 2.2, but
> I'm guessing this is something to be aware of when I upgrade to 2.3.
See User.autoLoginFunc
/Jeppe