define overridable constants for session properties FS#1913
removed pre PHP 5.2 code wrt setcookie and session setting

- moved cookiedir determination in the if-statement
Merge pull request #578 from splitbrain/sessionprops

define overridable constants for session properties FS#1913