Bonjour à tous!
Voilà j'ai créé un sous domaine et mis un site.
Mais malhereusement je n'arrive pas à initialiser les session et je ne voie pas du tout pourquoi...
Voilà le code
J'ai
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 <?php require('function.php'); session_start(); if(!$_SESSION) { echo "PAS DE SESSION"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]> <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en"> <head> [...] <h2 class="art-postheader"> <img src="images/postheadericon.png" width="19" height="17" alt="" /><a href="Blog Posts\post.html">Bienvenue</a> </h2> <div class="art-postmetadataheader"> <div class="art-postheadericons art-metadata-icons"><?php echo date('d m Y'); ?></div> <!-- CONTENT //////// --> <div class="art-postcontent"> <?php main(); ?> </div> <div class="cleared"></div> [...] </body> </html> <?php session_destroy(); ?>
Continuellement, quoi que je fasse ( j'ai également commenté function.php pour voir si ca venait de lui, rien à faire ca veut pas! )PAS DE SESSION
Partager