Why doesn't it add to the cookie?



  • There's a code for collecting statistics, the first time you're in a box of number...visit number 1 of the visit, I'm trying to get the number from the docket number...visit the visit number. 1 and add +1 to it, but somehow 11!

    Why is this happening?

    code such as:

    number_visit = getCookie(NUMBER_VISIT_COOKIE)+1; // прибавляем +1 визит
    


  • Cooks stored only rows, so when the value is obtained getCookie(UCRM_NUMBER_VISIT_COOKIE) This line and when the orange is laid, it is given to the lines.

    In order to solve the problem, a line should be added: e.g. the use of the narco. +

    number_visit = (+getCookie(NUMBER_VISIT_COOKIE))+1
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2