You are not logged in.

#1 2012-12-10 10:53:23

jeremyj11
Member
Registered: 2012-12-10
Posts: 3

[SOLVED] Apache / PHP new install - sessions not working

Hi,

So I've just installed Apache and PHP from extra repository using pacman, everything seems to be working fine except PHP sessions!

I'm testing this using 2 files, file 1 stores a variable into $_SESSION, file2 tries to access it - without success.

I've chmoded the /tmp directory to 777. I've tested storing files in /tmp via PHP - which works.
I've gone through the php.ini and online documentation and am at a loss - somebody, anybody, any ideas??

File1:
session_start();
$_SESSION['test']='hi';
var_dump($_SESSION);

File2:
session_start();
var_dump($_SESSION);

I'm accessing both the files in the same browser (Chromium) in different tabs as localhost/file1.php,file2.php

Thanks,
Jeremy

Last edited by jeremyj11 (2012-12-10 11:46:26)

Offline

#2 2012-12-10 11:08:28

jeremyj11
Member
Registered: 2012-12-10
Posts: 3

Re: [SOLVED] Apache / PHP new install - sessions not working

Ok after wasting hours on this - SOLVED - .. by simply clearing the contents of /tmp

bloody computers.

Offline

Board footer

Powered by FluxBB