function smart_ip_session_set in Smart IP 7
Same name and namespace in other branches
- 6.2 smart_ip.module \smart_ip_session_set()
- 6 smart_ip.module \smart_ip_session_set()
- 7.2 smart_ip.module \smart_ip_session_set()
Write session variable.
7 calls to smart_ip_session_set()
- device_geolocation_check_geolocation_attempt in modules/
device_geolocation/ device_geolocation.module - Check Geolocation attempt.
- device_geolocation_contents in modules/
device_geolocation/ device_geolocation.module - Device geolocation block content function.
- device_geolocation_detector_ajax in modules/
device_geolocation/ device_geolocation.module - Google Geocoding ajax callback function data recipient.
- device_geolocation_get_coordinates in modules/
device_geolocation/ device_geolocation.module - Get Visitor's coordinates.
- smart_ip_admin_settings_submit in includes/
smart_ip.admin.inc - Process Forms submitted by IP to Country administration page
File
- ./
smart_ip.module, line 635 - Determines country, geo location (longitude/latitude), region, city and postal code of the user, based on IP address
Code
function smart_ip_session_set($key, $value) {
if (module_exists('session_cache')) {
session_cache_set($key, $value);
}
else {
$_SESSION[$key] = $value;
}
}