use cookies to remember group instead of session