problèmes avec les sessions
salut je viens d'uploader mon site web sur ftpperso.free.fr. j'utilise les sessions et voila le problème, si je charge l'index.php à la racine du site ça plante :
Code:
1 2 3 4 5 6 7 8 9 10 11
| Warning: session_start() [function.session-start]: open(/mnt/101/sdb/8/1/pweb1/sessions/sess_e31c73415b50232046fe7bb4e2e68517, O_RDWR) failed: No such file or directory (2) in /mnt/101/sdb/8/1/pweb1/gestion09/index.php on line 3
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /mnt/101/sdb/8/1/pweb1/gestion09/index.php:3) in /mnt/101/sdb/8/1/pweb1/gestion09/index.php on line 3
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /mnt/101/sdb/8/1/pweb1/gestion09/index.php:3) in /mnt/101/sdb/8/1/pweb1/gestion09/index.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /mnt/101/sdb/8/1/pweb1/gestion09/index.php:3) in /mnt/101/sdb/8/1/pweb1/gestion09/index.php on line 6
Warning: Unknown(): open(/mnt/101/sdb/8/1/pweb1/sessions/sess_e31c73415b50232046fe7bb4e2e68517, 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 (/mnt/101/sdb/8/1/pweb1/sessions) in Unknown on line 0 |
j'ai vu sur certains postes qu'il fallait faire un répertoire sessions à la racine donc j'en ai fais un mais je n'y ai rien mis dedans!
j'ai un bout de code de sessions en début de chaque page. pour l'index déja voila le début :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <?php
session_start();
require("fonctions.php");
if(!isset($_SESSION['id']))
{
header("Location: login.php");
exit;
}
else
{
if(time()-$_SESSION['dernier_acces'] > session_timeout)
deconnexion();
else
{
$_SESSION['dernier_acces']=time();
?>
<html> |
je n'y connais pas grand chose merci de votre aide.
voila le phpinfo sur free si ça peut aider :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
| PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl Off Off
error_append_string no value no value
error_log /cache/php.err /cache/php.err
error_prepend_string no value no value
error_reporting 2039 2039
expose_php On On
extension_dir /usr/php4/lib/php/extensions/no-debug-non-zts-20020429 /usr/php4/lib/php/extensions/no-debug-non-zts-20020429
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path /mnt/101/sdb/8/1/pweb1/include:.:/usr/php4/lib/php .:/usr/php4/lib/php/
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 30 30
max_input_time 60 60
memory_limit 32M 32M
open_basedir /mnt/101/sdb/8/1/pweb1 no value
output_buffering no value no value
output_handler no value no value
post_max_size 2M 2M
precision 14 14
register_argc_argv On On
register_globals On On
report_memleaks On On
safe_mode On On
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode On On
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On |
c'est peut etre pas très lisible désolé
merci d'avance