method
check_nonce
v1_9_3_392 -
Show latest stable
-
0 notes -
Class: Request
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378 (0)
- 1_9_2_180 (0)
- 1_9_3_125 (0)
- 1_9_3_392 (0)
- 2_1_10 (1)
- 2_2_9 (38)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
check_nonce(p1)
public
Check nonce validity in a request and response. Return value reflects result:
1: nonces present and equal. 2: nonces both absent. 3: nonce present in response only. 0: nonces both present and not equal.
-1: nonce in request only.
For most responders clients can check return > 0. If responder doesn't handle nonces return != 0 may be necessary. return == 0 is always an error.