|
| HOMEPAGE | INDICE FORUM | REGOLAMENTO | ::. | NEI PREFERITI | .:: | RSS Forum | RSS News | NEWS web | NEWS software | |
| PUBBLICITA' | | | ARTICOLI | WIN XP | VISTA | WIN 7 | REGISTRI | SOFTWARE | MANUALI | RECENSIONI | LINUX | HUMOR | HARDWARE | DOWNLOAD | | | CERCA nel FORUM » | |
29-12-2002, 00.14.21 | #1 |
Junior Member
Registrato: 20-07-2002
Loc.: Genova
Messaggi: 152
|
Problema con i cookye
how to check the cookie? I've got authlib up-and-running perfectly, with my own fields and a couple of other additions; however, how do I then check for the existence of the cookie on other pages I want to have access restricted to? in poche parole dice come si fa a far girare l'utente nelle pagine riservate una volta riconosciuto dal sistema ed evitare altri non riconosciuti ad aprire le pagine riservate.... questa e' stata la risposta: To do this, I have found that you need to do the following. 1.) modify backend.php and change the call to setcookie in the login function to include the path to be "/" if you want the cookie to be available outside of the authlib directory structure. [php] setcookie("authlib", "$username:$hash:$id",time()+3600, "/"); [/php] 2.) then to check the cookie, make sure that your page is a php page, and include the following code: [php] <? require ("backend.php"); $login_check = $authlib->is_logged(); if (!$login_check) { //User is not logged in. } else{ //User is logged in. } ?> [/php] I think that should do it for you. bhe io ho provato ad inserire lo script da lui citato nelle pagine riservate ma a me non funziona.... sbaglio qualche cosa??? mi potete aiutare a completare questo script dato che ancora non sono riuscito a trovare uno script come si deve e completo visto che io non sono in grado di farmene uno ciao grazie Massimo *************** |
Utenti attualmente attivi che stanno leggendo questa discussione: 1 (0 utenti e 1 ospiti) | |
Strumenti discussione | |
|
|
Discussioni simili | ||||
Discussione | Autore discussione | Forum | Risposte | Ultimo messaggio |
Problema di comunicazione col masterizzatore | Shumila | Masterizzazione Giochi Games | 4 | 13-09-2007 07.40.31 |
Flashget problema!!! | CruSheR | Software applicativo | 3 | 26-06-2007 10.17.37 |
Problema Pinnacle PCTV Pro e periferiche IDE | exion | Hardware e Overclock | 56 | 30-01-2005 11.44.47 |
Problema con la masterizzazione... la colpa è della Audigy!!! Qualche idea??? | LaBrie | Windows 7/Vista/XP/ 2003 | 13 | 31-01-2004 15.28.25 |
Problema di lentezza ma solo certi momenti | Marko | Windows 7/Vista/XP/ 2003 | 3 | 12-09-2003 16.01.19 |