Reply to Re: session ends

Your name:

Reply:


Posted by Mikel Astiz on 09/26/05 14:52

Write my own session handler? How can I do that? Any references?

Thanks,
Mikel


"Colin McKinnon" <colin.deletethis@andthis.mms3.com> escribiσ en el mensaje
news:dh8du0$r37$3$8302bc10@news.demon.co.uk...
> Mikel Astiz wrote:
>
>> Hi,
>>
>> I am looking for a simple way to detect session ends so I can update
>> a
>> session table. I am new to PHP and don't understand how such event can be
>> handled, since there seems not to be a corresponding overridable
>> function.
>> I've found 'register_shutdown_function', but apparently it detects
>> connection breaks while the page is being loaded (I'm not sure though).
>>
>> I supose it will always be possible to control timeouted sessions by
>> polling, but I wouldn't like to do so. Of course, client side scripts are
>> not enough. I want to handle broken connections and prevent from evil
>> users too.
>>
>
> RTFM. If a session is not explicitly ended it will be removed by a garbage
> collection operation (sessions already have a last active timestamp on
> them). If you want to trigger additional events then you'll need to write
> your own session handler.
>
> C.

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация