views:

103

answers:

1

Hi, my question is as in the title. Thanks, Michal.

A: 

You mean Avoid multiple sessions ?

Damien MATHIEU
That looks like it, but what is "record"? When I implement that piece of code I get: "The error occurred while evaluating nil.reset_persistence_token"Thank, Michal.
jokinn
This code needs to be added to the UserSession model. Not the User one.The "record" represents the user that's trying to log himself in.
Damien MATHIEU
It is in UserSession, exactly how instructed, and it is nil.
jokinn
Do you have the last version of authlogic ?
Damien MATHIEU
I do have the latest version indeed, I don't understand why it doesn't work :(
jokinn
OK, so it seems that record is only nil, when an automatic logout happens (a user session timeout).
jokinn