A cookie is a small text file that stores information on your computer. Cookies are used to increase functionality and make it easier for visitors to a website. When an Internet user visits a website, the web server writes a cookie on the local computer. By doing so, the web server knows that the user has returned to the website.
Furthermore, the section states the following: "This does not prevent such storage or access as is necessary to perform or facilitate the transmission of an electronic message via an electronic communications network or which is necessary to provide a service that the user or subscriber has expressly requested."
PTS, the Swedish Post and Telecom Agency have information about what the law means: www.pts.se