Cookie POC for authenticated users
Goal
We want to make sure that the Cookie can reliably tell us who is authenticated or not.
Product code with cookie: https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/models/active_session.rb?ref_type=heads#L111
# set marketing cookie when user has active session
def self.set_active_user_cookie(auth)
expiration_time = 2.weeks.from_now
auth.cookies[:gitlab_user] =
{
value: true,
domain: Gitlab.config.gitlab.host,
expires: expiration_time
}
end
Please provide more information related to this request
~~Not sure of the scope of this request as I have never worked with Cookie. Should reach out to Miracle for that. ~~
DONE, seems to be good. Personalization should be solid.
Does anyone in leadership have eyes on this project?
-
Yes @filza
-
No
How do we measure success?
- Does it work in prod?
- If so, can our analytics reflect that?
Edited by Javier Garcia