Has anyone considered a way to run a script or automatically access a
php page when a user leaves a site without logging off?
The idea is to gracefully end that user's session.
Thanks!
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Jan 25, 2010 at 1:48 PM, listread listr...@cze.com wrote:
Has anyone considered a way to run a script or automatically access a php
page when a user leaves a site without logging off?
The idea is to gracefully end that user's session.
Thanks!
--
PHP Database Mailing List
Hello List,
Trying to learn the right way to code this line.
Can anyone tell me if I am doing this the right way?
if $req_user_level == 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 ||
9 ? Guest || Regular User || Intl. User || Contractor ||
Employee || Sales || Investor || Human Resources ||
2010/1/25 listread listr...@cze.com:
Has anyone considered a way to run a script or automatically access a php
page when a user leaves a site without logging off?
The idea is to gracefully end that user's session.
The built-in garbage collector is not sufficient for your app?
Additionally,
Hi,
did you mean something like this?
$level_names = array(Guest, Regular User, Intl. User,
Contractor, Employee,
Sales, Investor, Human Resources,
Administrator);
$user_level = $level_names[$req_user_level];
Regards,
Olavi Ivask
On Jan 25, 2010, at 9:13 PM, Karl
On Mon, 25 Jan 2010, Karl DeSaulniers wrote:
Hello List,
Trying to learn the right way to code this line.
Can anyone tell me if I am doing this the right way?
if $req_user_level == 0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9 ?
Guest || Regular User || Intl. User || Contractor || Employee
Hi,
$req_user_level is a MySql return result and I am trying to utilize
shortened code to evaluate whither $req_user_level == 0 || 1 || 2 ||
3 || 4 || 5 || 6 || 7 || 8 || 9, if it matches a number, return the
text associated with that number.
Guest || Regular User || Intl. User ||
I am trying to avoid doing this:
if ($req_user_level == 0) {
$req_user_level = Guest;
} else if ($req_user_level == 1) {
req_user_level = Regular User
}
etc..
Karl DeSaulniers
Design Drumm
http://designdrumm.com
Don't you like my solution?
Regards,
Olavi
On Jan 25, 2010, at 9:39 PM, Karl DeSaulniers wrote:
Hi,
$req_user_level is a MySql return result and I am trying to utilize
shortened code to evaluate whither $req_user_level == 0 || 1 || 2 ||
3 || 4 || 5 || 6 || 7 || 8 || 9, if it matches a
Thank you for this as well.
Question? What part is in_array playing?
Is it comparing $req_user_level to array()?
Because the text Guest, etc.. is not in $req_user_level on the
database.
In other words, is it checking the value of $req_user_level to see if
Guest is in it?
Karl
On Jan 25,
On Mon, 25 Jan 2010, Karl DeSaulniers wrote:
Thank you for this as well.
Question? What part is in_array playing?
Is it comparing $req_user_level to array()?
Because the text Guest, etc.. is not in $req_user_level on the database.
In other words, is it checking the value of $req_user_level to
Yes, $req_user_level is an int between 0 and 9.
Yes, the other code worked great.
Thank you for your response though.
That is definitely a good way to cross check.
Thanks again for your responses.
Best,
Karl
On Jan 25, 2010, at 2:24 PM, Peter Beckman wrote:
On Mon, 25 Jan 2010, Karl
js onunload sounds like a viable option. Will it work if the use just
closes his browser?
Thanks for the tip!
- Ron
On 1/25/2010 12:51 PM, Bastien Koert wrote:
On Mon, Jan 25, 2010 at 1:48 PM, listreadlistr...@cze.com wrote:
Has anyone considered a way to run a script or
Bruno,
Thanks for the heads up on the php configuration. I'll check that out.
We also need to write some data to a database, things like logout time.
That means running a script for some other php code.
Thanks!
- Ron
On 1/25/2010 1:24 PM, Bruno Fajardo wrote:
2010/1/25
Hi list, thank to the wonderful people on this list.
I am planning a system that require access to the system based on
Role, i love the implementation in SMF(www.simplemachines.org) that
every modules can define there own role and but i don`t know how.
Users will be in group like Administrator,
I developed an implementation that combines roles with fine grained
access. Each role is given a set of permissions ( the current set is
global to the app, the next will be per application) in it, I specify
a db field ( varchar 255) that holds a binary permission scheme. I.E.
10001 etc
I implemented something like this in a NAC company I founded (Lockdown
Networks)...
define('OP_GLOBAL_ADMIN', 10);
define('OP_ADMINISTRATOR', 20);
define('OP_OPERATOR', 30);
define('OP_EUM_OPERATOR', 39);
define('OP_READONLY', 40);
//[dv] only set the TRUE
17 matches
Mail list logo