Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Keith.SimpleCookie
- {
- [Export(typeof(ISetCookies))]
- public class SimpleCookie : ISetCookies
- {
- public void SetCookie(HttpContext context)
- {
- context.Response.Cookies.Add(new HttpCookie("Name", context.User.Identity.Name));
- }
- }
- }
Add Comment
Please, Sign In to add comment