Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION SESSION exists and session_start() already called
#1
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?
Reply


Messages In This Thread
SESSION exists and session_start() already called - by vanfruniken - 2018-03-06, 19:17:30



Users browsing this thread: 1 Guest(s)