Sfoglia il codice sorgente

tracking cookie only goes for last send, as it can only set once, and cannot be overwritten.

master
sp 5 anni fa
parent
commit
64cc9648e6
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. +0
    -1
      apiv1.go

+ 0
- 1
apiv1.go Vedi File

session.RenewIfExpireSoon() session.RenewIfExpireSoon()
session.SetRemote(r) //make sure they are using latest remote session.SetRemote(r) //make sure they are using latest remote
session.Add("mid", apiV1GetMachineId(r)) //set machine id session.Add("mid", apiV1GetMachineId(r)) //set machine id
apiV1AddTrackingCookie(w, r, &session) // add tracking cookie to client


//we have a session now, either guest or valid user //we have a session now, either guest or valid user
//search through handler //search through handler

Loading…
Annulla
Salva