Auto logout

Links for php scripts

Moderators: macek, egami, gesf

kiwi
New php-forum User
New php-forum User
Posts: 124
Joined: Sun Feb 29, 2004 6:26 am
Contact:

Auto logout

Postby kiwi » Sat Sep 18, 2004 10:20 pm

i know session expired use to check how long a user is log in, but where should i put this code, is it in all my php pages or certain only? thanks

JasonMichael
New php-forum User
New php-forum User
Posts: 2
Joined: Fri Sep 24, 2004 10:17 am

Postby JasonMichael » Fri Sep 24, 2004 1:08 pm

It seems to make sense to use it at the beginning of your code, before you attempt to create a session.

User avatar
ndtoan13
New php-forum User
New php-forum User
Posts: 23
Joined: Thu Sep 30, 2004 5:49 pm
Contact:

Postby ndtoan13 » Thu Sep 30, 2004 11:37 pm

You said
session expired use to check how long a user is log in
.
How do you check "How long a user is log in", if you can, maybe you take a session then subtract it to previous session . So why do you wonder your page have session start or not, because seesion is store in the server and you can take it whenever you want.
Of course, if you want to check session, you must have it at the beginning of your code.


Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest