Enable session to work between subdomain

Sets session cookie param to share it between subdomains. Read more.

php
fork add to bundle source
function enable_subdomain_session($root_domain) { return session_set_cookie_params(0, '/', $root_domain); }

usage

load_function('enable_subdomain_session'); enable_subdomain_session('example.com'); session_start(); // sessions will be shared between subdomains of example.com
← how to use this in app?
create log ...inout