I am using session in my form and i have tried using these code example for session. I get this code at this website: http://www.tizag.com/phpT/phpsessions.php <?php session_start(); $_SESSION['views'] = 1; // store session data echo "Pageviews = ". $_SESSION['views']; //retrieve data ?> the output supposedly should just has Pageviews = 1. but i receive this error. the error that i get is this: PHP Warning: session_start() [function.session-start]: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:/ <the path name of the folder>) in Unknown on line 0. what does this error means n how can i solve this error?
Are you on windows? The error message is very much self explanatory. Check php.ini and find the session.save_path. Make sure that the file mentioned exists and is writable.