Skip to content

Instantly share code, notes, and snippets.

View mtorres0612's full-sized avatar

Mark Daniel Torres mtorres0612

  • Flying Cockatoo
  • Alabang
View GitHub Profile
@lorddev
lorddev / AntiForgeryTokenValidator.asp
Last active May 23, 2024 17:59
Classic ASP version of ASP.NET MVC AntiForgeryToken validator
<%
' Use with a very short session (basically the page lifecycle, GET then POST)
Class AntiForgeryValidator
Private m_securityToken
Sub SetCookie()
m_securityToken = CreateWindowsGuid()
Response.Cookies("RequestVerificationToken") = m_securityToken