dm-merb/lib/merb/session/data_mapper_session.rb
# Gets the existing session based on the <tt>session_id</tt> available in cookies.
# If none is found, generates a new session.
Gets the existing session based on the session_id available in cookies.
If none is found, generates a new session.
Gets the existing session based on the session_id available in cookies . If none is found generates a new session .
def persist(session_id)
        if session_id
          session = self[session_id]
        end
        unless session
          session = generate
        end
        [session, session.session_id]
      end
def persist ( session_id ) if session_id session = self [ session_id ] end unless session session = generate end [ session , session . session_id ] end
Gets the existing session based on the <tt>session_id</tt> available in cookies.
Gets the existing session based on the <tt > session_id< / tt > available in cookies .
session_id