-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsession.js.javascript.txt
39 lines (31 loc) · 1.86 KB
/
session.js.javascript.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
┏━━━━━━━━━━━━━━━━┓
┃ SESSION.JS ┃
┗━━━━━━━━━━━━━━━━┛
VERSION ==> #Web script (0.4) populating WINDOW.session OBJ with user info.
#Do not use: not maintained anymore, and can get same info with normal DOM.
#To use options do before loading session.js:
# WINDOW.session = { options: OBJ }
#where OBJ has members:
# - location_cookie_timeout NUM (hours, def 5)
# - session_timeout NUM (days, def 32)
#To use CALLBACK when finish do before loading session.js:
# WINDOW.session = { start CALLBACK(WINDOW.session) }
#The members of OBJ follow:
api_version #0.4
browser.browser #Among "Chrome", "OmniWeb", "Safari", "Opera", "iCab", "Konqueror", "Firefox", "Camino",
#"Netscape", "Explorer", "Mozilla", "Netscape"
browser.version #e.g. 16
browser.os #Among "Windows", "Mac", "Linux", "iPhone/iPod", "iPad", "Android"
browser.distro #Only Linux, e.g. "CentOS"
device.is_tablet|phone|
mobile #BOOL. Mobile is tablet or phone.
plugins.flash|silverlight|
java|quicktime #BOOL
device.screen|viewport.
width|height #NUM
location.latitude|longitude #DOUBLE
location.address.city|region
|country|country_code #
locale #OBJ with info on locales
time #Timezone
current|lastsession #OBJ with info on sessions (last visit, referrer, etc.) based on cookies