Guest User

Untitled

a guest
Jan 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public synchronized function verifySessionToken(key, token) {
  2.  
  3. var temp = sessionTokens[key];
  4.  
  5. if (isnull(temp)) {
  6.  
  7. return NULL;
  8. }
  9.  
  10. if (!isnull(temp) && isnull(temp.next) && temp.data == token) {
  11. return temp.data;
  12. }
  13.  
  14. while (temp.next != NULL) {
  15.  
  16. if (temp.data == token) {
  17. return temp.data;
  18. }
  19.  
  20. temp = temp.next;
  21. }
  22.  
  23. return NULL;
  24. }
Add Comment
Please, Sign In to add comment