GithubHelp home page GithubHelp logo

Comments (10)

 avatar commented on May 28, 2024

:remember_me option not saving with UserSession.new

That’s strange. The remember_me feature uses a cookie. Are you sure that cookies are properly being created? Try doing a simple test where you expire a cookie in the future, close your browser, and see if you can still retrieve that cookie. I can’t tell you how many times people have an issue with authlogic when their cookies aren’t working properly.

I’m using the remember_me function on a number of sites I manage and all are working great.

Hope this helps.

by Ben Johnson

from authlogic.

 avatar commented on May 28, 2024

:remember_me option not saving with UserSession.new

While logged with with the Remember me? option checked, I viewed my cookies in Firefox and there’s nothing no ’remember_me’ cookie. I see no reason why it wouldn’t create the ’remember_me’ cookie since it also creates session and user_credentials cookies.

by c00lryguy

from authlogic.

 avatar commented on May 28, 2024

:remember_me option not saving with UserSession.new

Do you have some sort of example app using the remember_me option?

by c00lryguy

from authlogic.

 avatar commented on May 28, 2024

:remember_me option not saving with UserSession.new

I’m having the same problem here but I can get the remember_me to be true on the current_user_session.

I don’t have any remeber_me cookie created either.... will keep work on it...

            Thanks

by Philippe René

from authlogic.

 avatar commented on May 28, 2024

:remember_me option not saving with UserSession.new

I have a related problem that is puzzling me.

I decided to keep things simple and have every session ’remembered’. I added a line to my UserSession model:

class UserSession < Authlogic::Session::Base
remember_me true
end

This works great in development, but doesn’t seem to work in production. I see the cookie, but it is set to expire at the end of the browser session.

Any thoughts??

Thanks

by Phil McT

from authlogic.

 avatar commented on May 28, 2024

:remember_me option not saving with UserSession.new

Sorry, the code snipped there is:

@@@ class UserSession < Authlogic::Session::Base
remember_me true
end @@@

by Phil McT

from authlogic.

 avatar commented on May 28, 2024

:remember_me option not saving with UserSession.new

Oh for an post edit feature!!

Last try:

@@@ class UserSession < Authlogic::Session::Base
remember_me true
end
@@@

by Phil McT

from authlogic.

 avatar commented on May 28, 2024

:remember_me option not saving with UserSession.new

I messed around for a bit. Looks like unpacking the gem fixed the problem. My host has authlogic installed, looks like the same version, so I don’t know exactly what happened. But it’s working for me now.

Thanks for the plugin, cool stuff.

by Phil McT

from authlogic.

sailing avatar sailing commented on May 28, 2024

I wonder if this is caused by postgresql requiring boolean to be true / false, instead of 1 / 0?

from authlogic.

tiegz avatar tiegz commented on May 28, 2024

(looks like this was resolved)

from authlogic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.