Can I get total number of users count? i.e. Users online? idle users?
The number of session in the list will give you an idea of the number of users that were logged in in the last 24 minutes (by default, depends on your server).
But there is no way to tell if they were active or not, and there is no way to get the number without going to the admin area and counting the rows.
I think there is. many social networks have implemented the idle time.
I didn’t mean that it was impossible, just that this item will not help you display the number on your site.
Any chance we can get a more detailed example instead of the single
I still don’t see how this works.
I works in the exact same way as the default session, so for more examples you can just look here http://php.net/manual/session.examples.basic.php
How do you create users + passwords?
Can users be easily created?
My goal is to integrate this and allow each user to have their own data area – linked to session (data saved to DB, session to file or DB).
What are your thoughts / feedback?
Can this handle my needs?
Thanks! Keep up the good work!
The code that deals with the admin login is in the adimin/login.php file starting on line 7.
To make this work with multiple users you need to remove the simple check against the value in the config file and add a more complicated database method.
Once that is done you will have a multi user system, but each user will be able to view all of the session data. The easiest way to limit it to their own would be via the IP address, if you are using the MySQL storage method then you would have to modify the table structure to add the column for the IP and the SQL statements to insert it and only select rows where it is the current users IP.
Overall it can handle your needs, but would require quite a lot of modification to let users view only their own data.
this is the kind of error i get after i have carefully installed the session mgt stuff: What is the solution
Warning: mysql_query() [function.mysql-query]: Access denied for user ‘ungilles’@’localhost’ (using password: NO) in /home/ungilles/public_html/session_manager/inc/session_handler_mysql.class.inc.php on line 49
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/ungilles/public_html/session_manager/inc/session_handler_mysql.class.inc.php on line 49
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/ungilles/public_html/session_manager/inc/session_handler_mysql.class.inc.php on line 53
Looks like you need to set the database password.
I have just purchased your Session Management script. I have 2 question about it:
Can we install the files above the root so that sessions cannot be seen from a browser?
In case we use VPS Hosting do we still need Session Management protection?
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Deliver better projects faster. Photos, templates & courses
Unlimited downloads. Only $29/month
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work