[PHP] Session variables

2001-09-07 Thread Ing. Lalka Peter
Hi! I want to know how many users are currently online at my site. How can I get this info from php? Can I? Thank you for answer. Barno -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Session variables - Users online

2001-09-07 Thread Aniceto Lopez
put this code in the home web page ?php $timeoutsecs = 900; $timestamp = time(); $caduc = $timestamp+$timeoutsecs; $conexion = @mysql_connect(localhost, user, password) or die (No db CONEXION); mysql_select_db (yourdb, $conexion); mysql_query(INSERT INTO uonline SET . caduc='$caduc', .

[PHP] Session Variables

2001-07-25 Thread Jason Bell
Is there anyway to prevent session variables from being overwritten by a get string? I'm wanting to use sessions for security/login, but I'm finding that I can bypass this very easily. For example, I want to hide menu items based on security level, so I use something like this: if

RE: [PHP] Session Variables

2001-07-25 Thread Johnson, Kirk
Is there anyway to prevent session variables from being overwritten by a get string? PHP will do this automatically *if* you initialize your session variables to *anything* as soon as you register them. For example, session_register(sess_auth); $sess_auth = ; If you do this, then session

Re: [PHP] Session Variables

2001-07-25 Thread Jason Bell
PROTECTED] To: Johnson, Kirk [EMAIL PROTECTED] Cc: PHP Users [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 2:10 PM Subject: RE: [PHP] Session Variables On Wed, 25 Jul 2001, Johnson, Kirk wrote: Is there anyway to prevent session variables from being overwritten by a get string? PHP

RE: [PHP] Session Variables and Redirecting

2001-07-13 Thread Johnson, Kirk
, instead of using the $HTTP_SESSION_VARS array: $someflag = somevalue; $failedattempts++; Kirk -Original Message- From: Johnny Nguyen [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2001 12:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Session Variables and Redirecting I've done

[PHP] session variables and page interrupt via a refresh

2001-07-03 Thread Johnson, Kirk
Hope someone can help on this one. Say you have a FORM processing page that does lots of stuff, so it takes many seconds to execute. Say the user gets impatient and hits the Refresh button while the processing page is only half completed. Here's the question: do any changes to session variables

[PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
When does a session variable become available? Immediately after the session_register command or after the script ends? And if the commands are as follows: session_start(); session_register(hello); $hello=3; will the session variable $hello be set to 3 or do I have to add another

RE: [PHP] Session Variables

2001-05-03 Thread Johnson, Kirk
-Original Message- From: Nikhil Goyal [mailto:[EMAIL PROTECTED]] When does a session variable become available? Immediately after the session_register command or after the script ends? Immediately after it is assigned. And if the commands are as follows: session_start();

RE: [PHP] Session Variables

2001-05-03 Thread Johnson, Kirk
the session values from script 1 before they can be retrieved by script 2. Kirk -Original Message- From: Nikhil Goyal [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 2:41 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Session Variables Funnily - doesn't work for me. Here's what

Re: [PHP] Session Variables

2001-05-03 Thread Nikhil Goyal
they can be retrieved by script 2. Kirk -Original Message- From: Nikhil Goyal [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 2:41 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Session Variables Funnily - doesn't work for me. Here's what I got: Script #1 #!/usr/l

RE: [PHP] Session Variables

2001-05-03 Thread Johnson, Kirk
[mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 2:51 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Session Variables so the session variable is set only when the script ends? I thought you indicated that they were set immediately... Thanks for the quick reply, Nikhil [EMAIL

[PHP] Session Variables Cookies

2001-04-17 Thread Bob Clingan
I've tried to follow the example in the online manual, but and I believe my session/cookie variables are being stored. Is there some specific way I need to call them? Can anyone provide a brief example? Thanks. --Bob -- +---+ |

Re: [PHP] session variables

2001-04-11 Thread mailing_list
I tried using a cookie I still had the same problem that it worked first time but even if you stayed on the page and put a sencond entry in it would not work, then you: set the cookie incorrectly overwrite/delete the cookie by mistake your browser does not support cookies ... read

[PHP] session variables

2001-04-10 Thread george
I am using a session to store a variable so when someone enters something into a field the persons username(which is stored in the session) is also entered into anoter field. The problem is that it only works the first time, so how can I make the session last for a required length of time, so

Re: [PHP] session variables

2001-04-10 Thread mailing_list
I am using a session to store a variable so when someone enters something into a field the persons username(which is stored in the session) is also entered into anoter field. The problem is that it only works the first time, so how can I make the session last for a required length of time,

[PHP] Session variables and register_global

2001-04-04 Thread Niklas Neumann
Hello, is it meant that session_register("test"); $GLOBALS['HTTP_SESSION_VARS']['test'] = 'Hello World!'; does not work properly (session variable test is not initialized with the value 'Hello World!') if register_globals is turned on, but when it is turned off? Best regards Niklas --

RE: [PHP] Session variables and register_global

2001-04-04 Thread Johnson, Kirk
-Original Message- From: Niklas Neumann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 3:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Session variables and register_global session_register("test"); $GLOBALS['HTTP_SESSION_VARS']['test'] = 'Hello World!'; doe

[PHP] Session-variables

2001-02-05 Thread spider
Is it ok to mail questions to this list? If so; Is there something similar like the "session variables" of ASP in PHP, or do one have to use (client-side) cookies instead? /thanks/me -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Session-variables

2001-02-05 Thread Hardy Merrill
Look at http://www.php.net/manual/en/html/ref.session.html HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com spider [[EMAIL PROTECTED]] wrote: Is it ok to mail questions to this list? If so; Is there something similar like the "session variables" of

<    1   2   3