Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] session_start()
ydy10
post
Post #1





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


na localhoscie nie dawalem w kazdym pliku do ktorego przekierowalo header();, a w ktorym uzywalem sesji session_start() i bylo OK
jednak na serverze juz bez session_start sesje sie "gubia"

wiem ze mozna w kazdym pliku dawac session_start(), ale czy nie mozna tego jakos zmienic inaczej questionmark.gif
Go to the top of the page
+Quote Post
Cysiaczek
post
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




session_auto_start w php.ini

Inaczej juz się nie da.

pozdrawiam


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
ydy10
post
Post #3





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


i to pomoze ?

P.S.
bo zobaczylem terz na localhoscie ze session.auto_start mam na 0 jedak

Ten post edytował ydy10 9.08.2006, 22:19:55
Go to the top of the page
+Quote Post
Cysiaczek
post
Post #4





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Jak dasz na jeden, to php automatycznie startuje sesję dla każdego połączenia, więc tak - pomoże.

Pozdrawiam.

Ten post edytował Cysiaczek 9.08.2006, 22:25:20


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
ydy10
post
Post #5





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


na localhoscie mam na 0 - i dziala smile.gif

na serverze nie wiem jak - i nie dziala ...

to co robic ?
Go to the top of the page
+Quote Post
revyag
post
Post #6





Grupa: Przyjaciele php.pl
Postów: 2 258
Pomógł: 16
Dołączył: 21.09.2004
Skąd: Kielce

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


Zrób jeden plik w którym będziesz miał session_start i includuj do niego pozostałe.


--------------------
-------------

------
Go to the top of the page
+Quote Post
piwoszeq
post
Post #7





Grupa: Zarejestrowani
Postów: 57
Pomógł: 0
Dołączył: 13.01.2005
Skąd: warszawa

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


czasem sie potrafia sesje gubic winksmiley.jpg
mialem taki przypadek na jakims free serwerze tongue.gif
pozatym zrob to co radza koledzy winksmiley.jpg
Go to the top of the page
+Quote Post
ydy10
post
Post #8





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


ja juz mam prawie 20 tys. linii ktore korzystaja z sesji jak korzystaja. zobaczymy czy momoze to auto session

a jak sprawdzic czy session.auto_start jest ustwaione napewno na 1 ?
Go to the top of the page
+Quote Post
Cysiaczek
post
Post #9





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Czh tak ciężko jest uruchomić phpinfo() ? Tam jest wszystko napisane. Ewentualnie uruchom php.ini w edytorze, ustaw na 1 i zrestartuj serwer.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
ydy10
post
Post #10





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


phpinfo() nie podaje info o tym parametrze.

a otworzyc plik php.ini nie moge bo server nie moj, do pliku nie mam dostepu, admin podobno ustawil juz na 1, ale nei dziala i nie mam pewnosci czy napewno ustawil, a chce to sprawdzic jakos.
Go to the top of the page
+Quote Post
NetJaro
post
Post #11





Grupa: Zarejestrowani
Postów: 475
Pomógł: 0
Dołączył: 1.04.2005
Skąd: Warszawa

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


ini_get" title="Zobacz w manualu php" target="_manual.
Go to the top of the page
+Quote Post
ydy10
post
Post #12





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


  1. <?php
  2. $aa = ini_get('session.auto_start');
  3.  
  4.  print($aa);
  5. ?>


i nic mi nie wyswietla ...
Go to the top of the page
+Quote Post
NetJaro
post
Post #13





Grupa: Zarejestrowani
Postów: 475
Pomógł: 0
Dołączył: 1.04.2005
Skąd: Warszawa

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


...

No to może get_cfg_var" title="Zobacz w manualu php" target="_manual.
Go to the top of the page
+Quote Post
ydy10
post
Post #14





Grupa: Zablokowani
Postów: 87
Pomógł: 0
Dołączył: 29.07.2006

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


dodalem a htaccess auto_start dla sesji i dziala smile.gif
dzieki wszystkim
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: 21.08.2025 - 07:39