Telefonino.net network
 
| 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 » |

Torna indietro   WinTricks Forum > Software > Programmazione

Notices

Rispondi
 
Strumenti discussione
Vecchio 29-12-2002, 00.14.21   #1
ravint
Junior Member
 
L'avatar di ravint
 
Registrato: 20-07-2002
Loc.: Genova
Messaggi: 152
ravint promette bene
Problema con i cookye

sto cercando di usare questo script...tuttavia ho notato una discussione che riporto in originale:

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
***************
ravint non è collegato   Rispondi citando
Rispondi


Utenti attualmente attivi che stanno leggendo questa discussione: 1 (0 utenti e 1 ospiti)
 
Strumenti discussione

Regole di scrittura
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is ON
Gli smilies sono ON
[IMG] è ON
Il codice HTML è OFF

Vai al forum

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

Orario GMT +2. Ora sono le: 10.45.32.


E' vietata la riproduzione, anche solo in parte, di contenuti e grafica.
Copyright © 1999-2017 Edizioni Master S.p.A. p.iva: 02105820787 • Tutti i diritti sono riservati
L'editore NON si assume nessuna responsabilità dei contenuti pubblicati sul forum in quanto redatti direttamente dagli utenti.
Questi ultimi sono responsabili dei contenuti da loro riportati nelle discussioni del forum
Powered by vBulletin - 2010 Copyright © Jelsoft Enterprises Limited.