Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Dim loginID = result.FirstOrDefault.ID
  2. Dim cookie As New HttpCookie(username)
  3. cookie.Value = loginID
  4.  
  5. Dim dtNow As DateTime = DateTime.Now
  6. Dim tsminute As New TimeSpan(0, 0, 30, 0)
  7. cookie.Expires = dtNow.Add(tsminute)
  8.  
  9. Response.Cookies.Add(cookie)
  10. Response.Redirect("notifications.aspx?cookie=" & username.ToString())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement