Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Michael Kinney's latest activity

Thursday, September 09 2010
2200 reset_session broken was updated in Ruby on Rails
  • Michael Kinney
    Michael Kinney commented at 4:06 PM

    This ticket was originally about a problem with cookie store which is fixed now. Since the ticket is marked "resolved" I'm not sure if anyone else will see your...

Tuesday, November 03 2009
2200 reset_session broken was updated in Ruby on Rails
  • Michael Kinney
    Michael Kinney commented at 10:09 PM

    Here are some new tests. Cookie store and memcache store both pass. I can't find any tests for active record store.

    Should this be a new ticket, since this one ...

  • Michael Kinney
    Michael Kinney commented at 6:29 PM

    I haven't tried this yet, but is this basically what you're suggesting?

    def reset_session
      @env['rack.session.options'].delete(:id)
      empty_session = {}
      ses...
Monday, November 02 2009
2200 reset_session broken was updated in Ruby on Rails
  • Michael Kinney
    Michael Kinney commented at 10:20 PM

    Re: set_session(@env, generate_sid, session_data.to_hash)

    Won't work. Example, for AR store: that will call get_session_model with a sid that doesn't exist, mea...

  • Michael Kinney
    Michael Kinney commented at 10:11 PM

    There's no simple way to fix this. My method only works for me because I don't care about the GET, POST, or cookies in the methods where I need reset_session. T...

  • Michael Kinney
    Michael Kinney commented at 8:11 PM

    @bart - That will test that reset_session supplies a new session ID when a new request comes through. The old (desired) behavior is that a new session ID should...

Thursday, October 29 2009
2200 reset_session broken was updated in Ruby on Rails
  • Michael Kinney
    Michael Kinney commented at 6:13 PM

    @heidmo - I haven't tested your proposed method, but I don't think it will meet requirement #3. The real problem is that reset_session disconnects the session (...

  • Michael Kinney
    Michael Kinney commented at 3:15 PM

    I agree with Bart and Heidmo. If the desired behavior of reset_session is this:

    1. Clear the current session
    2. Assign a new empty session to the request
    3. Provide a n...