Welcome to the Geeks & God Static Archive. Read more »

Secure Session not Working

Joined: 11/28/2008

Hi all,

I have an issue trying to get my session handler to transfer data correctly in secure mode. if use the following code which works fine.

CODE
 session_set_cookie_params(0, '/', '.'.SERVER_NAME);
 session_start();

When I modify this to secure the transfer of session data to:

CODE
 session_set_cookie_params(0, '/', '.'.SERVER_NAME, true);
 session_start();

the session no longer works. The cookie is set, but it appears that the information is not past back to the server correctly, and thus the second page does not see the session set on page one.

The pages I am using to set up the session (a sign in page) is on a secure server with a Equifax Certificate.

So have I missed something that I need to set up correctly and have not. phpMyAdmin run on the same secure site and it sets and successfully sends secure session cookies.

I am at a bit of a loss as to how to proceed.

I greet you with the great words,
Grace and Peace.
Craig Rayner

QUOTE We have met th

Joined: 11/28/2008
Did you get this resolved

Did you get this resolved yet?

John B. Abela
JohnAbela.Com &&