2018-03-06, 19:17:30
(This post was last modified: 2018-03-06, 19:19:23 by vanfruniken.)
In an attempt to avoid repeatedly finding out Server/Client's IP/DNS and querying external sites for GeoIp info, I am trying to collect this info once and for all and pass it along to further pages via the SESSION variable using $_SESSION['myKey'].
I initiate the creation (or check for existence/home-brew timeout) of my session data quite early, namely from hook_theme-header.
The $_SESSION variable already exists and session_start() has already been called (I get a warning to that effect when I call session_start) (Why? If I understand correctly, Shawn claims GetSimple isn't relying on Session vars).
Unfortunately I have run into server memory overflows, and I am just asking myself whether it is acceptable to do a session_unset() . Will the internal operation of GetSimple be disrupted? I suspect not.
Any suggestions? Am I barking up against the wrong tree with my approach?
I initiate the creation (or check for existence/home-brew timeout) of my session data quite early, namely from hook_theme-header.
The $_SESSION variable already exists and session_start() has already been called (I get a warning to that effect when I call session_start) (Why? If I understand correctly, Shawn claims GetSimple isn't relying on Session vars).
Unfortunately I have run into server memory overflows, and I am just asking myself whether it is acceptable to do a session_unset() . Will the internal operation of GetSimple be disrupted? I suspect not.
Any suggestions? Am I barking up against the wrong tree with my approach?