Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z sesjami na LINUX SLACKWARE
slammer
post
Post #1





Grupa: Zarejestrowani
Postów: 187
Pomógł: 6
Dołączył: 31.08.2005
Skąd: Bielsko-Biała

Ostrzeżenie: (0%)
-----


problem polega na tym że tworz np plik akcji
  1. <?php
  2.  
  3. $_SESSION['login'] = 1;
  4.  
  5. header("location: index.php");
  6. ?>

lecz gdy przejdzie na stronke index.php nagle jakims sposobem gubi sesje... po prostu jej nie widzi, jest bez wartości...

index.php
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <link rel="Stylesheet" href="style.css" type="text/css">
  3. </head>
  4. <frameset cols="15%,85%" border="0" frameborder="0" framespacing="0">
  5. <frame src="Menu.php" name="menu" scrolling="no" frameborder="0">
  6. Twoja przegladarka nie obsluguje ramek!
  7. <frame src="Strona.php" name="strona" scrolling="auto" frameborder="0" >
  8. </html>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
tomekp
post
Post #2





Grupa: Zarejestrowani
Postów: 171
Pomógł: 0
Dołączył: 17.12.2003
Skąd: Krakół

Ostrzeżenie: (0%)
-----


Powinno to wyglądać tak:
  1. <?php
  2. $_SESSION['login'] = 1;
  3.  
  4. header("location: index.php");
  5. ?>
Go to the top of the page
+Quote Post
Prph
post
Post #3





Grupa: Zarejestrowani
Postów: 338
Pomógł: 2
Dołączył: 4.03.2006
Skąd: Łódź

Ostrzeżenie: (0%)
-----


I oczywiscie w index.php takze
  1. <?php
  2. ?>
Go to the top of the page
+Quote Post
slammer
post
Post #4





Grupa: Zarejestrowani
Postów: 187
Pomógł: 6
Dołączył: 31.08.2005
Skąd: Bielsko-Biała

Ostrzeżenie: (0%)
-----


ooo wielkie dzięki teraz działa (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) myślałem ze to przez wersje linuxową (IMG:http://forum.php.pl/style_emoticons/default/laugh.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 20:40