Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: pafiledb - problem z szybkim wylogowywaniem...
Forum PHP.pl > Forum > Gotowe rozwiązania
kostooch
Zainstalowalem sobie na serwerze pafiledb wer. 3.0. Po zalogowaniu do centrum administracji zostaje bardzo czesto wylogowany. Np - tworze jakas kategorie - wylogowuje mnie, etc. W manualu wyczytalem, ze mozna zmienic ustawienie dotyczace logowania z cookies na sesje. Zmieniam na sesje i dalej nic nie daje. Co mozna poradzic?
kostooch
"Wyciag" z manuala (byc moze wam pomoze w udzieleniu odpowiedzi smile.gif:

Cytat
If you're having problems with 3.0 final not logging you into the admin center or quickly logging you out, then cookies aren't working properly for you, and you will need to try sessions. Before you make the switch to sessions, make a directory called "sessions" in your paFileDB folder (same folder as pafiledb.php) and CHMOD the directory 777. If you are using a Windows server, you will not need to CHMOD the directory. If you've used paFileDB 2.x or a v3 beta before on this same server without problems, you shouldn't have a problem with sessions.

To switch between sessions and cookies, open up pafiledb.php and look for the text:


$authmethod = "cookies";
OR:


$authmethod = "sessions";
(That line of text will be different depending on what it's set to)


To set it to cookies, change the text in the quotes (" ") to "cookies" (without quotes)
To set it to sessions, change the text in the quotes (" ") to "sessions" (without quotes)

Save and re-upload the file to your server.


Notes:
--Cookies are enabled by default and are the recommended method. Only switch to sessions if you're having problems logging into the admin center. If you're not having problems, don't change anything
--If you're using cookies, you can delete the "sessions" directory and all the files in it. However, if you ever need to go back to sessions, you will need to recreate the directory and CHMOD it 777 (on *NIX servers)


Postepuje tak jak tu napisali i to nic nie pomaga - dalej mnie wylgowywuje...
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.