I’m using Virtualmin GPL, all updates, on Centos. I’ve been writing a php program that uses session variables, it WAS working.
I used Webmin>others>file manager>edit to modify \etc\php.ini only to double the session time from 1440 to 2880.
Now sessions no longer work at all! I have put it back again to original, rebooted entire machine, still no sessions.
I’ve tried using the test code:
[code:1]<?php
if(!isset($_session)) session_start();
if(isset($_session[‘test’]))
{
echo $_session[‘test’];
}
else
{
$_session[‘test’] = “session is set and remembered, no matter the SID”;
echo ‘session was not set. <a href=“test.php”>Click here</a> to refresh’;
}
?> [/code:1]
It says no session no matter how many times I refresh… Could this be a permissions thing? Could Webmin have screwed it up? The owner is curently root and permissions 644…is this right?