Posts

Showing posts from December 3, 2018

Set alamofire cookies permenantly

Image
up vote 0 down vote favorite I am using Alamofire for my requests and I get cookies in some of them, everything works fine when I launch the app and use it but when I kill the app and reopen the cookies are not there anymore. I searched a lot and found this but none of the answers helped. I try to save the cookies after each request and load them before sending request as below: func saveCookies(response: DataResponse<Any>) { let headerFields = response.response?.allHeaderFields as! [String: String] let url = response.response?.url let cookies = HTTPCookie.cookies(withResponseHeaderFields: headerFields, for: url!) var cookieArray = [[HTTPCookiePropertyKey: Any]]() for cookie in cookies { cookieArray.append(cookie.properties!) } UserDefaults.standard.set(cookieArray, forKey: &q

Tom Sorensen

Image
Tom Sorensen Personal information Born Thomas Sorensen April 6, 1971  ( 1971-04-06 ) (age  47) Racine, Wisconsin, U.S. Height 6 ft 6 in (1.98 m) Medal record Men’s volleyball Representing   United States World Championships Athens 1994 Team Competition Pan American Games Mar del Plata 1995 Team Competition Thomas "Tom" Sorensen (born April 6, 1971 in Racine, Wisconsin) is a former American volleyball player, who was a member of the United States men's national volleyball team at the 1996 Summer Olympics in Atlanta, Georgia. Sorenson graduated from Racine Case High School in Racine, Wisconsin. A liberal arts major at Pepperdine University, the 1991 FIVB World League was the first event he competed in as a national team member. Tom currently serves as an assistant volleyball coach for both the men's and women's teams at Ottawa University in Kansas. References Profile at The Washington Post v