View Single Post
Old 17th March 2012, 01:58
linux_red linux_red is offline
Junior Member
Join Date: Mar 2012
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default php https sessions

I have a problem with php session on my site that is structured like this:

http root = /var/www/
https root = /var/www/

I'm using name based virtrualhosts on apache2 (Fedora x86_64).

I'm doing a test with two simple files:
file1.php in http root

 $_SESSION['test'] = 'test'; 
and file2.php in https root

I'm not sure if I did everything right (I never used the sessions with php)
but the output of file 2 (in ssl root) is always 'Array()' which means that does not get the session variables (right?).

I also tried to set session variable via 'GET method' in a link but nothing to do.
I will post configurations if needed. Hope u can help me ... Thanks
Reply With Quote
Sponsored Links