How do I write array of values in Setcookie function?

  cookies, php, session-cookies, setcookie, symfony

I need to write a function where: When user logs in the function Writes in cookie:

{
'link': 'user/dashboard',
'name': 'users first name'
}

Source: Symfony Questions

LEAVE A COMMENT