session_set_cookie_params problem with ssl

Hi All,

I am using session_set_cookie_params to pass my session data across my main domain and sub domains. my main domain has (non ssl pages, as well as ssl pages but my sub domains they have only non ssl pages)

Session works pretty fine on main domain but when i go to sub domains it do not work there…

Can anyone help me to fix this issue? It was working pretty fine before SSL.

Here is my code:

Thanks in advance.