Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public synchronized function verifySessionToken(key, token) {
- var temp = sessionTokens[key];
- if (isnull(temp)) {
- return NULL;
- }
- if (!isnull(temp) && isnull(temp.next) && temp.data == token) {
- return temp.data;
- }
- while (temp.next != NULL) {
- if (temp.data == token) {
- return temp.data;
- }
- temp = temp.next;
- }
- return NULL;
- }
Add Comment
Please, Sign In to add comment