PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > Re: Dropping Temporary Tables
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Re: Dropping Temporary Tables

Réponse
 
LinkBack Outils de la discussion
Vieux 21/07/2007, 16h29   #1
vic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Dropping Temporary Tables


"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
newsp.tvtlajysqnv3q9@metallium...
> On Sat, 21 Jul 2007 15:55:04 +0200, vic <vic at showsec dot <"com>">
> wrote:
>
>> Hello,
>>
>> I'm looking for a technique where I can delete temporary tables that are
>> created during a user's login session. If the user logs out, I can
>> delete the tables in the logout routine. However, users that do not
>> logout have some temporary tables and I'm having to manually delete
>> these from the MySQL database.
>>
>> Can someone suggest a method like a "Session Expires" event where I
>> might handle this cleanup activity?

>
> Define your own session handler with session_set_save_handler()
> (<http://www.php.net/session_set_save_handler>), and run the logic on
> destroying a session and on the garbage collecting of timed out sessions.
> --
> Rik Wasmus


Thanks Rik - I was looking at this but I'm having trouble understanding the
documentation how to implement this!

Vic

  Réponse avec citation
Vieux 22/07/2007, 19h23   #2
vic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Dropping Temporary Tables


> I used to have exactly the same problem. Temporary data was uploaded by
> the user during working sessions. At regular logout, temp. data was
> deleted. But if the user didn't do a regular logout, data was still there.
>
> So I created a CRON job that was running every single day at Midnight. My
> users were working from 8:00am to 5:00pm and weren't any more at job at
> Midnight.
>
> The CRON job was scheduled to delete data and send a short notice to the
> user (next time he was logging in) saying that temporary data had been
> deleted because he didn't logged out properly.
>
> That's the only I found for this "problem".
>
> Hope this .
>
> Max
>


Thanks Max - I don't think this will work because this being a web site I
could end up deleting someone's active session data.

Vic

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h55.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07137 seconds with 10 queries