Jump to content

Recommended Posts

I'm setting up my new live server using suPHP mod in apache but it dosen't seam to save session variables. If i do:

session_start();
$_SESSION['foo'] = "foo";
$_SESSION['bar'] = "bar";
print_r($_SESSION);

 

it will print out the sessions as it shoud do, but if i do

session_start();
$_SESSION['foo'] = "foo";
$_SESSION['bar'] = "bar";
print_r($_SESSION);
header('Location: otherpage.php');

and then on the other page do

session_start();
print_r($_SESSION);

 

some phpinfo();

 

session.auto_startOffOff

session.bug_compat_42OffOff

session.bug_compat_warnOffOff

session.cache_expire180180

session.cache_limiternocachenocache

session.cookie_domainno valueno value

session.cookie_httponlyOffOff

session.cookie_lifetime00

session.cookie_path//

session.cookie_secureOffOff

session.entropy_fileno valueno value

session.entropy_length00

session.gc_divisor10001000

session.gc_maxlifetime14401440

session.gc_probability11

session.hash_bits_per_character55

session.hash_function00

session.namePHPSESSIDPHPSESSID

session.referer_checkno valueno value

session.save_handlerfilesfiles

session.save_path/var/lib/php5/var/lib/php5

session.serialize_handlerphpphp

session.use_cookiesOnOn

session.use_only_cookiesOnOn

session.use_trans_sid00

Link to comment
https://forums.phpfreaks.com/topic/241448-session-variables-are-not-saved/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.