Created
January 16, 2012 22:05
-
-
Save joegaudet/1623271 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private def setCookie(response: HttpServletResponse, cookieString: String, expiry: Int) = { | |
val newCookie = new Cookie("MatygoSession", cookieString); | |
newCookie.setMaxAge(expiry); | |
newCookie.setPath("/"); | |
newCookie.setMaxAge(expiry) | |
response.addCookie(newCookie); | |
cookieString | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment