|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi all,
i'd like that "admin" users on my site could close the session of another user, immediately forbidding him the access to the site (beside i'd delete the login of the user). Anyway of doing it using the default PHP session handler (i.e. whithout using a db to store sessions)? -- Stefano Esposito -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Prestiti e Finanziamenti con un semplice click, scopri subito se sei finanziabile cliccando qui Clicca qui: http://adv.email.it/cgi-bin/foclick....d=2910&d=24-10 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
<?php
unlink('/tmp/sess_' . session_id()); ?> You'll need to know the session_id of the session you want to close. The code above closes/ends the current users session, but simply substitute the desired session id (of course you'll need to know this in advance) for the call to session_id(). -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and Desk software that can cut the cost of online support |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Richard Heyes wrote:
> <?php > unlink('/tmp/sess_' . session_id()); unlink(session_save_path().'/'.session_id()); // no? > ?> > > You'll need to know the session_id of the session you want to close. The > code above closes/ends the current users session, but simply substitute > the desired session id (of course you'll need to know this in advance) > for the call to session_id(). > |
|
![]() |
| Outils de la discussion | |
|
|