PHP Session Variables Not Saved in Centos Linux? -



PHP Session Variables Not Saved in Centos Linux? -

i having php script fails save session variable when nail submit in php version 5.1.6 linux centos system. problem happens on time. temporary solve problem php rebooting machine. however, not solution. temporary solution.

here php session info:

directive local value master value session.auto_start off off session.bug_compat_42 off off session.bug_compat_warn on on session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path / / session.save_path /var/lib/php/session /var/lib/php/session session.serialize_handler php php session.use_cookies on on session.use_only_cookies off off session.use_trans_sid 0 0

under php core:

directive local value master value open_basedir /var/www/domain.com/httpdocs/public_html/:/tmp/ no value

i suggest why rebooting machine solves temporary php session variables not saved.

my php code uses session variable check if captcha values solved when nail submit button. check shown below done when page reloads after submit hit.

<?php session_start(); if($_session['captcha_keystring'] == $_post["keystring"]){ } // end: if capcha verification else { echo "wrong capcha entered!"; } ?>

even when captcha_keystring solved fails.

php session-variables

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -