1) In which directory I should save the php.ini file?
2) session.save_path = 'directory'
In which directory this parameter should be set to? Default is /tmp?
3) session.auto_start = 0
How to enable it?
When I run this code
- Code: Select all
<?php
session_start();
?>
<html>
<head>
<title>test Session</title>
<H2><b>Session testing</b></H2>
</head>
<body>
<?php
print "Your session ID: $PHPSESSID";
?>
</body>
</html>
I got this error
Warning: open(/tmp\sess_78335c30d114ce7cbb872e648754d241, O_RDWR) failed: m (2) in C:\apache\htdocs\session.php on line 3
Session testing
Your session ID:
Warning: open(/tmp\sess_78335c30d114ce7cbb872e648754d241, O_RDWR) failed: m (2) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Hope someone can help me, thanks in advance


