Relocate remember login set_session to snippet