Reply to Re: Sessions which do not expire...

Your name:

Reply:


Posted by Good Man on 02/25/06 19:11

"Sam" <salmondays2000@yahoo.co.uk> wrote in news:1140782741.657118.82670
@e56g2000cwe.googlegroups.com:

>>>I hope it's of interest.... <
>
> It's very interesting.
>
> Thanks to both of you for your informative replies - I think I
> understand what I need to do now :o)

as a side note, you can also write a quick function that a) converts the
current moment to a Unix Timestamp; b) checks a database or flat text file
for the last activity by the user (by UserID for example) c) sees if its
longer than 30 minutes ago compared to this timestamp, and if so, kicks the
user out to a page where you can unset($_SESSION['session1']); etc... if
not, then it writes the new timestamp to the db/textfile. as long as you
don't have a crazy number of users on the system, this works close to
flawlessly.

[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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация