PHP session check

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Cesar
Forum Commoner
Posts: 31
Joined: Sat May 22, 2004 1:35 am

PHP session check

Post by Cesar »

:( Please Help me!
What can i know the client session is active or not and client closed his browser or not?

Regards.
:idea: :idea:
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Check for Timeout - session.gc_maxlifetime.
Cesar
Forum Commoner
Posts: 31
Joined: Sat May 22, 2004 1:35 am

PHP session check - correction

Post by Cesar »

When client open the session I put data in my database, and i like in order after close client browser make update the my database.

Regards.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

if you are using database sessions, store the last time they accessed something. That can tell you who and when someone was active.
Cesar
Forum Commoner
Posts: 31
Joined: Sat May 22, 2004 1:35 am

Post by Cesar »

I dont using database session.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Cesar wrote:When client open the session I put data in my database, and i like in order after close client browser make update the my database.
That says to the contrary..
Cesar
Forum Commoner
Posts: 31
Joined: Sat May 22, 2004 1:35 am

Post by Cesar »

description of problem.
1. I have mysql database, and many rows in database.
2. Many client are connect and manage his.
3. before manage row in database i am puting to database number the row.
4. i like delete that row number of database after manage. I make this, but when client closed browser between managing, i dont make this.
Post Reply