Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [PHP] Autenticazione utenti
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
drakend
.grande:maestro.

User info:
Registered: Oct 2002
Posts: 1857 (0.22 al dì)
Location:
Corso:
Anno:
Time Online: 11 Days, 16:15:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[PHP] Autenticazione utenti

Salve,
come faccio a sapere, in php, se un utente è già loggato in uno stesso sito e quindi negare il login nel caso fosse fatto quando l'account relativo è già loggato?

19-05-2005 14:12
Click Here to See the Profile for drakend Click here to Send drakend a Private Message Find more posts by drakend Add drakend to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Drake83
Fan di Splinter

User info:
Registered: Nov 2003
Posts: 1631 (0.20 al dì)
Location: Garbagnate milanese
Corso: Tutto finito
Anno:
Time Online: 108 Days, 5:46:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: [PHP] Autenticazione utenti

Originally posted by drakend
Salve,
come faccio a sapere, in php, se un utente è già loggato in uno stesso sito e quindi negare il login nel caso fosse fatto quando l'account relativo è già loggato?


io faccio così : a livello database ho un campo cookie dentro il quale metto la passwd criptata;faccio il controllo x il login e se matcha creo il cookie dentro il quale metto il campo cookie dell'utente e poi richiamo il cookie facendo un controllo ( ad esempio if $_COOKIE["Login"]==null
---
---
---
else
---
---
---
)

__________________
"io non sono come gli altri Robin Hood, io non ballo coi lupi"
"ogni mattina come narciso si specchia nel ruscello retrovisore", "ci sono mille modi per chiamare dio...dio,allha,adta,arauffa,crisma..afjasf...tanto non ti risponde"

Corrado Guzzanti è il mio Dio.
Roberto Saviano eroe nazionale.

19-05-2005 14:38
Click Here to See the Profile for Drake83 Click Here to See the Blog of Drake83 Click here to Send Drake83 a Private Message Find more posts by Drake83 Add Drake83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloody
ex universitaria

User info:
Registered: Jan 2003
Posts: 1939 (0.23 al dì)
Location: milano trasferta
Corso: informatica
Anno: dottora :)
Time Online: 49 Days, 2:18:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

oppure, usando le sessioni, metti nell'array un identificatore dell'utente e quando fai il controllo se si e' gia' loggato o no controlli se quel campo e' diverso o no da null :)

__________________
I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

19-05-2005 17:12
Click Here to See the Profile for Bloody Click Here to See the Blog of Bloody Click here to Send Bloody a Private Message Find more posts by Bloody Add Bloody to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
drakend
.grande:maestro.

User info:
Registered: Oct 2002
Posts: 1857 (0.22 al dì)
Location:
Corso:
Anno:
Time Online: 11 Days, 16:15:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Bloody
oppure, usando le sessioni, metti nell'array un identificatore dell'utente e quando fai il controllo se si e' gia' loggato o no controlli se quel campo e' diverso o no da null :)

Ma l'array delle sessioni non è univoco per ogni connessione al web server?

19-05-2005 17:43
Click Here to See the Profile for drakend Click here to Send drakend a Private Message Find more posts by drakend Add drakend to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloody
ex universitaria

User info:
Registered: Jan 2003
Posts: 1939 (0.23 al dì)
Location: milano trasferta
Corso: informatica
Anno: dottora :)
Time Online: 49 Days, 2:18:48 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ah tu vuoi conservarle? io intendevo per la navigazione nel sito.. niente allora, ho capito male il problema :)

__________________
I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

19-05-2005 21:18
Click Here to See the Profile for Bloody Click Here to See the Blog of Bloody Click here to Send Bloody a Private Message Find more posts by Bloody Add Bloody to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 00:46.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.065 seconds (65.71% PHP - 34.29% MySQL) con 22 query.