Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak To Interpretować?, chodzi o ustawienia sesji
-Gość_Luke-
post 17.08.2004, 13:56:01
Post #1





Goście







Witam!
Mam ciągle problem z sesjami.
Chciałem przetestować kawałek kodu na zewnętrznym serwerze, który ma takie ustawienia:

session
Session Support enabled
Registered save handlers files user

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off

I kiedy wywołam tylko kod:
  1. <?php
  2. ?>
  3. <html>
  4. <body>
  5. <?php
  6. echo &#092;"rozpoczynam sesję\";
  7. ?>
  8. </body>
  9. </html>


to otrzymuję coś takiego:

Warning: session_start(): open(/tmp/sess_0e2f7f3af134e8883ec1ee2cfbb32d96, O_RDWR) failed: No such file or directory (2) in /!test2/index2.php on line 2

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /!test2/index2.php:2) in /!test2/index2.php on line 2

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /!test2/index2.php:2) in /!test2/index2.php on line 2
rozpoczynam sesję
Warning: Unknown(): open(/tmp/sess_0e2f7f3af134e8883ec1ee2cfbb32d96, 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 line 0

ohmy.gif
Proszę o pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
kicaj
post 17.08.2004, 13:57:53
Post #2





Grupa: Zarejestrowani
Postów: 1 640
Pomógł: 28
Dołączył: 13.02.2003
Skąd: Międzyrzecz/Poznań

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


Brak katalogu `/tmp`?


--------------------
PHP Developer

"Nadmiar wiedzy jest równie szkodliwy jak jej brak" Émile Zola
Go to the top of the page
+Quote Post
-Gość_Luke-
post 17.08.2004, 14:01:54
Post #3





Goście







Ale czy ja powinienem zakładać wszystkie katalogi tymczasowe, czy raczej powinna to robić funkcja obsługująca sesję?

p.s.
założyłem tmp i było bez zmian dry.gif
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 15:11