Alain dhaene 2012-12-06 03:53:09
I want to store some data in Sessions, but i have this error
Warning: Unknown(): Your script possibly relies on a session side-effect
which existed until PHP 4.2.3. Please be advised that the session extension
does not consider global variables as a source of data, unless
register_globals is enabled. You can disable this functionality and this
warning by setting session.bug_compat_42 or session.bug_compat_warn to off,
respectively. in Unknown on line 0
Warning: Unknown(): open(/tmp\sess_622d49ff6fbad164ba2ad7cd05fdd544, O_RDWR)
failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that
the current setting of session.save_path is correct (/tmp) in Unknown on
My version of php is version 4.3.4
Is there something that I have to change in my php.ini file?
Janwillem borl 2012-12-06 03:53:37
Make sure that you create sessions as follows:
session_start(); $_SESSION[‘foo’] = ‘bar’;
This means that you will have to point the session.save_path directive in
your php.ini file to wherever you want to save your sessions, e.g.:
session.save_path = c:/temp
Of course, the directory c:\temp should exist on your harddrive…
Philip watts 2012-12-07 14:56:57
Thanks for the help on my last problem. Fantastic – solved it!
I am now trying to use sessions and keep getting this error:
Warning: session_start(): open(/tmp\sess_c17d2f883b9727df3ea6d60f06274664,
O_RDWR) failed: No such file or directory (2) in c:\Apache2\htdocs\page2.php
on line 13
Any help please?
Many thanks to a superb community.