FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » session handler auto log out
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: session handler auto log out [message #176117 is a reply to message #176112] Thu, 24 November 2011 10:19 Go to previous messageGo to previous message
Arno Welzel is currently offline  Arno Welzel
Messages: 317
Registered: October 2011
Karma:
Senior Member
Arno Welzel, 2011-11-24 09:53:

> Jerry Stuckle, 2011-11-24 05:57:
>
>> On 11/23/2011 6:07 PM, Denis McMahon wrote:
>>> On Wed, 23 Nov 2011 20:42:40 +0100, Arno Welzel wrote:
>>>
>>>> Denis McMahon, 2011-11-23 19:58:
>>>>
>>>> > On Wed, 23 Nov 2011 10:17:45 +0100, Arno Welzel wrote:
>>>> >
>>>> >>>> Hint: It is also possible to implement a session handling on your
>>>> >>>> own.
>>>
>>>> >>> Yup, not easy to do, though.
>>>
>>>> >> Recording a timestamp and checking if the time of the last request by
>>>> >> the user (and not only the "check if session is still valid" request)
>>>> >> is not older than x minutes is "not easy"?
>>>
>>>> > and the session variables?
>>>
>>>> They get lost, as soon as the PHP session times out of course - but by
>>>> doing periodically request using JavaScript this will not happen, so one
>>>> has to implement additional logic to maintain your application specific
>>>> session timeout and to distinguish between the periodically session
>>>> checks via JavaScript and "real" requests caused by user interaction.
>>>
>>> I was asking how you're going to handle session variables in your own
>>> session handler.
>>>
>>> It seems you're not going to handle them ....
>>>
>>> Rgds
>>>
>>> Denis McMahon
>>
>> Nope, but that's because he has no idea what he's doing. I suspect
>
> Aha. I wonder, how i managed to run my own sites for the last seven
> years if i don't have any idea what i'm doing. A miracle ;-)
>
>> someone told him posting in usenet would bring him business. But the
>> failed to impress on him that posting ACCURATE guidance on usenet is
>> what's needed. Otherwise he's just making a fool of himself (and
>> driving away business).
>
> I see, you still don't get it and you decided to insult people.

I'm not sure if you will understand it - but as a "quick & dirty"
demonstration of what i'm talking about:

<http://arnowelzel.de/samples/sessiondemo.php>

And the source for this::

<http://arnowelzel.de/samples/sessiondemo.php.txt>



--
Arno Welzel
http://arnowelzel.de
http://de-rec-fahrrad.de
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: preg_match() oddities and question
Next Topic: Phone number formatting
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 19:36:11 GMT 2024

Total time taken to generate the page: 0.03892 seconds