Précédent   Forum des professionnels en informatique > PHP > Langage > Sessions
Sessions Forum d'entraide sur les sessions avec PHP. Avant de poster -> FAQ sessions, Cours sessions et Sources sécurité
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 10/04/2007, 16h46   #1
Futur Membre du Club
 
Homme
Inscription : avril 2007
Messages : 77
Détails du profil
Informations personnelles :
Sexe : Homme

Informations professionnelles :
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2007
Messages : 77
Points : 17
Points : 17
Par défaut Problème d'ouverture de session

Salut , je debute dans les sessions et j'ai un gros probleme j'ai eu beau chercher sur le net je n'ai pas trouvé de reponse precise ...

j'ai l'addresse de mon script :
http://s145049280.onlinehome.fr/index.php
et ma redirection : www.vali.fr.tc

et l'identification marche tres bien avec l'addresse d'origine mais pas avec la redirection , j'ai tout éssayé sans comprendre d'ou ça pouvais venir ..

voici le code de mon index (en gros) :

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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
 
<? session_start(); ?>
<html>
<head>
<?
include("fonction.php");
?>
 
<title>GT</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
 
<body>
<? 
 
   if(!isset($_SESSION['login'])) {
   include("identify.php");
   }else{
 
 
   switch($_GET['rub'])
  {
  case "listing": include("listing.php"); break; 
  case "taverne": include("taverne.php"); break; 
  case "poster": include("form.php"); break; 
  case "ndossier": include("form.php"); break; 
   case "rename": include("form.php"); break;
   case "chmod": include("form.php"); break;
  case "nfichier": include("form.php"); break; 
  case "about": include("about.php"); break; 
  case "admin": include("admin/admin.php"); break; 
  case "profil": include("profil.php"); break; 
  case "erreur": include("erreur.php"); break; 
  case "modperso": include("form.php"); break; 
  case "modrank": include("form.php"); break;
 case "modfich": include("form.php"); break; 
 case "rank": include("form.php"); break;
  case "copy": include("form.php"); break;
 case "historique": include("form.php"); break;
  case "compte": include("form.php"); break;
 case "censure": include("form.php"); break;
 case "smile": include("form.php"); break;
  case "modtav": include("form.php"); break; 
    case "mu": 
	 ?> <SCRIPT LANGUAGE='JavaScript'>
<!--
function redirect()
{
window.location='upload/index.php'
}
setTimeout('redirect()',0002);
-->
</SCRIPT> <?
	 break; 
  case "deco": 
  session_start();
  $_SESSION = array();
  session_destroy();
  ?> <SCRIPT LANGUAGE='JavaScript'>
<!--
function redirect()
{
window.location='index.php'
}
setTimeout('redirect()',0002);
-->
</SCRIPT> <?
   break; 
  default:
  include("listing.php");
    break;
}}
   ?></td>
 
        <td>&nbsp;</td>
      </tr>
      <tr>
	  <?  if(isset($_SESSION['login'])) {
	  ?>
        <td width="30" height="18">&nbsp;</td>
		  <td width="433" align="left" valign="top"><a href="index.php">Retour</a></td>
 
		<? } ?>
        <td width="10">&nbsp;</td>
      </tr>
 
    </table></td>
  </tr>
 
 
  <tr width="442" height="17">
 
 
 
 
    <td width="442" height="17" background="images/img_04.jpg"><span class="txtmid">
    <div align="center">  GenesisTrader v1.0 by jango <a href="http://www.genesis-php.com">http://www.genesis-php.com</a></div>
    </span></td>
  </tr>
 
</table>
<p align="center"><font color="#990000" face="Geneva, Arial, Helvetica, sans-serif"><font size="2">Important : Cliquez sur le bouton droit de la souris pour acceder au menu javascript </font></font></p>
<p align="center"><font color="#990000" size="1" face="Geneva, Arial, Helvetica, sans-serif"><font color="#CCCCCC"> http://s145049280.onlinehome.fr</font></font></p>
<p>
  <? if(isset($_SESSION['login'])) {
?>
</p>
<table width="442" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#EBEBEB" bgcolor="#F5F5F5">
  <tr>
    <td align="left" valign="top"><div align="left">
      <table width="442" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="221"><div align="center">::Legende::</div></td>
          <td width="221"><div align="center">Mises a jour : </div></td>
        </tr>
      </table>
    </div></td>
  </tr>
  <tr>
    <td><table width="442" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
      <tr>
        <td width="221"><table width="220" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="210" align="left" valign="top"><table width="110" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="46"><div align="center"><img src="images/del.jpg" width="11" height="10" /></div></td>
                  <td width="164"><div align="center">Supprimer</div></td>
                </tr>
                <tr>
                  <td height="20"><div align="center"><img src="images/modif.jpg" width="13" height="12" /></div></td>
                  <td><div align="center">Modifier</div></td>
                </tr>
            </table></td>
            <td width="210"><table width="110" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="46"><div align="center"><img src="images/deplacer.jpg" width="18" height="17" /></div></td>
                  <td width="164"><div align="center">Deplacer</div></td>
                </tr>
                <tr>
                  <td><div align="center"><img src="images/mod.jpg" width="14" height="14" /></div></td>
                  <td><div align="center">Renommer</div></td>
                </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="221"><iframe src="http://kgftp.free.fr/MAJ.php" allowtransparency="true" name="maj" marginheight="0" marginwidth="0" frameborder="0" height="30" width="221"> D&eacute;sol&eacute; mais votre navigateur ne supporte pas les cadres locaux. </iframe></td>
      </tr>
    </table></td>
  </tr>
</table>
<p>&nbsp;</p>
<p>
  <? } ?>
 
 
</body>
</html>


j'espere que quelqu'un aura la solution magique parce que la je pete un cable
Idleman est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 11/04/2007, 16h48   #2
Membre habitué
 
Avatar de Aliosha
 
Aliosha
Inscription : mars 2007
Messages : 124
Détails du profil
Informations personnelles :
Nom : Aliosha
Âge : 25
Localisation : France

Informations forums :
Inscription : mars 2007
Messages : 124
Points : 128
Points : 128
J'y connais pas grand chose en redirection, mais tu peux pas « embarquer » le $_SESSION dans ta redirection ?
__________________
« Le vécu-plat excite le chaos-rêve. » Traité de l'inactivité, Dimitri Grouchkch.
Aliosha est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 11/04/2007, 19h17   #3
Futur Membre du Club
 
Homme
Inscription : avril 2007
Messages : 77
Détails du profil
Informations personnelles :
Sexe : Homme

Informations professionnelles :
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2007
Messages : 77
Points : 17
Points : 17
j'y ai pensé mais je ne vois pas comment faire , la redirection est assurée par Xdir.com il n'y a aucun endroit ou mettre du php en entete ...

merci pour ta reponse !!
Idleman est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 12/04/2007, 09h58   #4
Membre habitué
 
Avatar de Sarrus
 
Inscription : mai 2005
Messages : 180
Détails du profil
Informations personnelles :
Localisation : France, Bas Rhin (Alsace)

Informations forums :
Inscription : mai 2005
Messages : 180
Points : 102
Points : 102
une variable de session est un fichier texte stocké sur le serveur. Si tu pars sur un autre site, tes variables ne seront plus accessibles.
__________________
http://www.guilde-active.fr
Sarrus est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 12/04/2007, 17h51   #5
Futur Membre du Club
 
Homme
Inscription : avril 2007
Messages : 77
Détails du profil
Informations personnelles :
Sexe : Homme

Informations professionnelles :
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : avril 2007
Messages : 77
Points : 17
Points : 17
crotte , il n'y a dons aucun moyen de faire marcher un systeme de session avec une redirection? ça se saurais si c'etais pas faisable non?
Idleman est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 13/04/2007, 10h52   #6
Membre habitué
 
Avatar de Sarrus
 
Inscription : mai 2005
Messages : 180
Détails du profil
Informations personnelles :
Localisation : France, Bas Rhin (Alsace)

Informations forums :
Inscription : mai 2005
Messages : 180
Points : 102
Points : 102
sinon tu peux transmettre tes variables dans l'url de ta redirection, mais apres je sais pas jusqu'a quel point tu as accès à l'autre site...
__________________
http://www.guilde-active.fr
Sarrus est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 10h01.


 
 
 
 
Partenaires

Hébergement Web