maintain cookie for browser even when user session is expired in django
setcookie("user", $username, time()+604800); /* Expires in a week */
"604800" represents the time the coockie will "live"
 for example
One Minute: 60
Ten Minutes: 600
Half-an-Hour: 1800
One Hour: 3600
One Day: 86400
One Week: 604800
Two Weeks: 1209600
One Month (30 days): 2592000
One Year (365 days): 31536000
I have a requirement where I want to set a cookie in the browser. This cookie is not 100% related to the user session, am trying to capture the desktop preferred setting. 
I want to store this setting into a cookie that will not expire when the user logs out. Am using django in my implementation, 
Please advise if there is something we can do?