howto implement Synchronizer Token Pattern in classic asp

后端 未结 2 1174
一向
一向 2021-01-14 09:00

to prevent CSRF I want to implement the Synchronizer Token Pattern in my classic asp application.

I understand that iIshould generate a token in session_onstart. Wh

2条回答
  •  时光说笑
    2021-01-14 09:18

    You could use a GUID as token:-

    Function GetGUID()
    
        GetGUID = CreateObject("Scriptlet.TypeLib").GUID 
    
    End Function
    

提交回复
热议问题