Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z PHPSESSID - Nie banalny!
Falcon_vanguard
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 13.09.2009

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


Witam wszystkich smile.gif ... Mam problem z doklejaniem identyfikatora sesji w linkach... W szczególności zależy mi na Googlach, przy indexowaniu... Jest to nie banalny problem poniewarz po wklejeniu

  1. php_value session.use_only_cookies 1
  2. php_value session.use_trans_sid 0


do pliku .htaccess daje mi tylko bład 500 :/ Próbowałem również:

  1. ini_set('use_only_cookies','On');
  2. ini_set('session.use_trans_sid', 'Off');


Ale nici... Proszę o pilna pomoc! Google przewróciłem do góry nogami i nic nie znalazłem...

MOJE PLIKI:

.htaccess :

  1.  
  2. Options FollowSymLinks
  3. RewriteEngine On
  4.  
  5.  
  6. RewriteRule ^index.html$ index.php [L]
  7. RewriteRule ^regulamin$ index.php?co=Regulamin [L]
  8. RewriteRule ^kontakt$ index.php?co=Kontakt [L]
  9. RewriteRule ^faq$ index.php?co=FAQ [L]
  10. RewriteRule ^rejestracja$ index.php?co=Rejestracja [L]
  11.  
  12.  
  13. RewriteRule ^kategoria/([^-]+)/([^-]+)/pytanie$ index.php?co=pytanie&id=$2&kat=$1 [L]
  14. RewriteRule ^kategoria/([^-]+)/([^-]+)/kupione$ index.php?co=kupione&id=$2&kat=$1 [L]
  15. RewriteRule ^kategoria/([^-]+)/([^-]+)/kup$ index.php?co=kup&id=$2&kat=$1 [L]
  16. RewriteRule ^kategoria/([^-]+)/([^-]+)$ index.php?co=ogloszenie&id=$2&kategoria=$1 [L]
  17.  
  18. RewriteRule ^kategoria/([^-]+)$ index.php?co=$1&strona=1 [L]
  19.  
  20. RewriteRule ^kategoria/([^-]+)$ index.php [L]
  21. RewriteRule ^kategoria/$ index.php [L]
  22.  
  23.  
  24. RewriteRule ^news-([^-]+)$ index.php?news=Wiecej&id=$1 [L]
  25.  
  26. RewriteRule ^wyloguj$ index.php?wyloguj=tak [L]
  27.  
  28.  
  29. RewriteRule ^ogloszenie/dodaj$ index.php?co=dodaj+ogloszenie [L]
  30. RewriteRule ^ogloszenie/twoje$ index.php?co=twoje+ogloszenia [L]
  31.  
  32.  
  33. RewriteRule ^dane/edytuj$ index.php?co=edytuj+dane [L]
  34. RewriteRule ^dane$ index.php?co=twoje+dane [L]
  35.  
  36. RewriteRule ^wiadomosci/skrzynka/([^-]+)/zaakceptowane$ index.php?co=skrzynka&zaakceptowane=tak&id=$1 [L]
  37. RewriteRule ^wiadomosci/skrzynka/([^-]+)/odrzucone$ index.php?co=skrzynka&zaakceptowane=nie&id=$1 [L]
  38.  
  39. RewriteRule ^wiadomosci/skrzynka/([^-]+)$ index.php?co=Wiadomosc&id=$1 [L]
  40. RewriteRule ^wiadomosci/skrzynka/usun-([^-]+)$ index.php?co=skrzynka&usun=$1 [L]
  41.  
  42.  
  43.  
  44. RewriteRule ^wiadomosci/skrzynka$ index.php?co=skrzynka [L]
  45. RewriteRule ^wiadomosci/$ index.php?co=skrzynka [L]
  46. RewriteRule ^wiadomosci/nowa$ index.php?co=Nowa+wiadomosc [L]
  47.  
  48. RewriteRule ^ogloszenie/twoje/usun-([^-]+)$ index.php?co=skasuj&id=$1 [L]
  49. RewriteRule ^ogloszenie/twoje/edytuj-([^-]+)$ index.php?co=edytuj&id=$1 [L]
  50.  
  51. RewriteRule ^profil/([^-]+)/usun-komentarz-([^-]+)$ index.php?profil=$1&usun_k=$2 [L]
  52. RewriteRule ^profil/([^-]+)/edytuj$ index.php?profil=$1&co=edytuj+profil [L]
  53. RewriteRule ^profil/([^-]+)/znajomy$ index.php?profil=$1&znajomy=dodaj [L]
  54.  
  55. RewriteRule ^profil/([^-]+)$ index.php?profil=$1 [L]
  56.  
  57. RewriteRule ^aktywuj-profil$ index.php?co=aktywuj [L]
  58.  
  59. RewriteRule ^avatar/edytuj/([^-]+)$ index.php?co=edycja+avataru&nazwa=$1 [L]
  60.  
  61. RewriteRule ^avatar/edytuj$ index.php?co=edycja+avataru [L]
  62.  
  63. RewriteRule ^punkty$ index.php?co=platnosci [L]
  64.  
  65. RewriteRule ^szukaj$ index.php?co=Szukaj [L]
  66.  
  67. RewriteRule ^historia$ index.php?co=historia_tranzakcji [L]
  68. RewriteRule ^historia/sprzedazy$ index.php?co=historia_tranzakcji&typ=sprzedazy [L]
  69. RewriteRule ^historia/doladowan$ index.php?co=historia_tranzakcji&typ=doladowan [L]
  70.  
  71. ErrorDocument 404 <a href="http://www.test.pl/index.html" target="_blank">http://www.test.pl/index.html</a>


INDEX:

  1. <?php
  2.  
  3. session_register("zalogowany");
  4. ini_set('use_only_cookies','On');
  5. ini_set('session.use_trans_sid', 'Off');
  6. ini_set('arg_separator.output','&amp;');
  7.  
  8. if(empty($_SESSION["zalogowany"]))$_SESSION["zalogowany"]=0;
  9.  
  10. $opYn0999 = mysql_connect ("localhost",
  11. "test",
  12. "test");
  13. mysql_select_db ("test");
  14.  
  15. require ('log/login.php');
  16.  
  17. if (substr($_SERVER['HTTP_USER_AGENT'],25,8)=='MSIE 6.0'){require('ie6.php'); ie6(); }
  18.  
  19. else {require ('templatki/template02/index.php');template02();}
  20.  
  21. mysql_close($opYn0999);
  22. ?>


Pracuje na koncie reseleserskim superhost.pl , nie mam dostępu do php.ini , POMOCY! Z góry dziękuje i pozdrawiam... sciana.gif
Go to the top of the page
+Quote Post
aso824
post
Post #2





Grupa: Zarejestrowani
Postów: 46
Pomógł: 1
Dołączył: 2.08.2009

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


Podejrzewam że możesz mieć zablokowane zmiany ustawień przez .htaccess lub PHP. Też tak miałem nawet na dobrym płatnym serwerze, ale napisałem do admina i odblokował mi tą usługę (zmiana ustawień php.ini).
Go to the top of the page
+Quote Post
Falcon_vanguard
post
Post #3





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 13.09.2009

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


Hmmm.. Dziwne bo linia:

  1. #
  2. ini_set('arg_separator.output','&amp;');


O dziwo działa! :/
Go to the top of the page
+Quote Post
luki100011
post
Post #4





Grupa: Zarejestrowani
Postów: 243
Pomógł: 20
Dołączył: 20.04.2004
Skąd: Wielkopolska

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


Napisz do obsługi hostingu a oni ci powiedzą czy te elementy możesz zmieniać czy nie


--------------------
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 Aktualny czas: 22.08.2025 - 02:58