#1  
Old 17th March 2012, 00: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

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

http root = /var/www/site.com/web
https root = /var/www/site.com/web/secure/content

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

Code:
<?php
  session_start();
 $_SESSION['test'] = 'test'; 
?>
and file2.php in https root

Code:
<?php
  session_start();
  print_r($_SESSION);
?>
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
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Only Problems since Updating from 3.0.3.3 to 3.0.4.1 mbay General 4 17th May 2012 12:56
ubuntu and nginx delgado2061 Installation/Configuration 0 27th November 2011 23:36
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 21:13
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 08:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18


All times are GMT +2. The time now is 15:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.