Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 117 Pomógł: 0 Dołączył: 12.11.2008 Ostrzeżenie: (0%)
|
http://wklej.org/id/31561/ (daję tam, bo tu jest jakieś ograniczenie długości postu do -1 znaku (no dobra, do 1 znaku (a tak na poważnie, to po prostu zdecydowanie za małe na kod)))
Ciągle generuje nową sesję (a raczej co drugi raz)(bo pojawia się nowy rekord w bazie). Dlaczego? Oprócz tego za 1, 3, 5 itd. odświeżeniem daje to: Cytat [Debug] PHP Notice: in file D:\www\includes\class_db.php on line 30: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource , a za 2, 4, 6 itd.:Something is wrong in your syntax obok '' w linii 1[Debug] PHP Notice: in file D:\www\includes\class_session.php on line 163: Cannot modify header information - headers already sent by (output started at D:\www\includes\error.php:8) [Debug] PHP Notice: in file D:\www\includes\class_main.php on line 15: Cannot modify header information - headers already sent by (output started at D:\www\includes\error.php:8) Cytat [Debug] PHP Notice: in file D:\www\includes\class_db.php on line 30: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource Ten błąd MySQL jest przez to, że $session->get_user_id(); daje pustkę.Something is wrong in your syntax obok '' w linii 1[Debug] PHP Notice: in file D:\www\includes\class_session.php on line 163: Cannot modify header information - headers already sent by (output started at D:\www\includes\error.php:8) [Debug] PHP Notice: in file D:\www\includes\class_session.php on line 61: Cannot modify header information - headers already sent by (output started at D:\www\includes\error.php:8) [Debug] PHP Notice: in file D:\www\includes\class_session.php on line 24: Cannot modify header information - headers already sent by (output started at D:\www\includes\error.php:8) [Debug] PHP Notice: in file D:\wwwclass_db.php on line 30: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource Something is wrong in your syntax obok '' w linii 1[Debug] PHP Notice: in file D:\www\includes\class_user.php on line 60: Undefined index: user_auth Edit: A do bazy rekord dodaje też co drugie odświeżenie. |
|
|
|
infoo1 [PHP][MYSQL] Skrypt sesji - ciągle generuje nową sesję 25.12.2008, 13:27:41
Kildyt Rozumiem, że załadowałeś sesje poprzez session_sta... 25.12.2008, 21:23:02
infoo1 Nie, to sesje na bazie.
Już przerobiłem i działa. 26.12.2008, 09:42:23 ![]() ![]() |
|
Aktualny czas: 25.12.2025 - 03:24 |