Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][MYSQL] Skrypt sesji - ciągle generuje nową sesję
infoo1
post 25.12.2008, 13:27:41
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
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)
, a za 2, 4, 6 itd.:
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
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
Ten błąd MySQL jest przez to, że $session->get_user_id(); daje pustkę.

Edit:
A do bazy rekord dodaje też co drugie odświeżenie.
Go to the top of the page
+Quote Post

Posty w temacie


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: 23.06.2025 - 21:33