Syntax to set session cookies
session_set_cookie_params($lifetime, $path, $domain, $secure, true);
Q1. Is setting session cookie like below secure or is there more to be done?
session_set_cookie_params('3600', 'www.example.com', isset($_SERVER["HTTPS"]), true);
Q2. What should be the ideal lifetime for setting a session (from security view point) cookie?
Q3. If ever I decide to shift my web admin folder to sub domain then will the above code require change?.