Re: [PHP] session_register vs. $_SESSION superglobal

2004-03-24 Thread Kim L. Laage
Once again, thanks for the replies... But I'm afraid I'm not getting this right... I've tested with the various versions of $_SESSION syntax which I've been recommended by the people on this group. i.e.: $_SESSION['s_user'] = $_POST['s_user']; $_SESSION['s_pass'] = $_POST['s_pass']; or

RE: [PHP] session_register vs. $_SESSION superglobal

2004-03-24 Thread Ford, Mike [LSS]
-Original Message- From: Kim L. Laage [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 10:52 Once again, thanks for the replies... But I'm afraid I'm not getting this right... I've tested with the various versions of $_SESSION syntax which I've been recommended by the people on

[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Kim L. Laage
Hi, Newbie warning - this may be extremely simple. I've been given a bit of code to get to work on our test machines, but at the moment I'm drawing a blank. As far as I can tell the problem lies in the dev. using a server environment with register_globals = On, while we use the default setting

[PHP] RE:[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Andy B
[snip] session_start(); $_SESSION = user; $_SESSION = pass; This doesn't work of course, but as I said I'm unsure of how the $_SESSION superglobal is used, and the info I've found about it didn't shed much light... I hope I'm just tired today 8-) Another semi-related question is, is it common to

[PHP] Re: RE:[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Scott Fletcher
$_session[user]=$_POST[user];//if using register_globals=off Actually, $_SESSION with a capital letters does work... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: RE:[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Kim L. Laage
(This msg. may arrive twice, with two different senders, I've had a little trouble with the news server) Hi, thanks for your reply. first $_SESSION works like this: session_start(); $_session[user]=$_POST[user];//if using register_globals=off $_SESSION[user]=$user;//if

Re: [PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Justin Patrin
Kim L. Laage wrote: (This msg. may arrive twice, with two different senders, I've had a little trouble with the news server) Hi, thanks for your reply. first $_SESSION works like this: session_start(); $_session[user]=$_POST[user];//if using register_globals=off $_SESSION[user]=$user;//if

Re: [PHP] RE:[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Pushpinder Singh
I am using PHP with register_globals ON... since I don't have access to the host environment. The way I use sessions is: session_start(); do some database connection and checking here. if (condition is met) { $_SESSION['valid_user'] = $_POST['login']; } Is

[PHP] session_register() Killing MySQL Connection

2003-01-21 Thread Brian T. Allen
Hi, Friday night I upgrade my server with the following: Apache 1.3.27 PHP 4.3.0 MySQL 3.23.54a Mod_SSL 2.8.12 OpenSSL 0.9.7 ZendOptimizer 2.1.0 Immediately I started having really weird problems that proved almost impossible to debug. I finally narrowed it down to a few lines of code that get

[PHP] session_register trouble ?

2002-09-12 Thread Christian Ista
Hello, I use this code : $myarray= array(); session_register (myarray); $i=0; while ($row = mysql_fetch_object($result)) { $myarray[$i][0] = $row-ID; $myarray[$i][1] = $row-NOM; $myarray[$i][2] = $row-PRENOM; $i = $i + 1; } for($i=0; $isizeof($myarray);$i++){ ? a

[PHP] session_register() twice?

2002-04-26 Thread Javier
What happens if I call session_start() twice? Does it creates another session? Cause something odd is going on with this simple script. if(!SesionActiva()){ -It checkes wether there an active session SesionCrear(); - It creates the session } /*SesionActivar();*/

Re: [PHP] session_register() twice?

2002-04-26 Thread Sascha Schumann
On Fri, 26 Apr 2002, Javier wrote: What happens if I call session_start() twice? Does it creates another session? It does nothing. if (PS(session_status) != php_session_none) return; - Sascha Experience IRCG http://schumann.cx/

Re: [PHP] session_register() twice?

2002-04-26 Thread Javier
I've got the index.php page that checks if there's a session created. If it is not, it creates a new one. I print the session_id; Then I go through a link to a login.php page there I print the session_id and its a different one. What could be the problem? Sascha Schumann wrote: On Fri, 26

[PHP] session_register and class variables

2002-01-21 Thread Bradley Goldsmith
Hi All, I am having problems with a class and session_register(). I define a class (parital implimentation below) with some variables and call session_register at the top of each page. After I change pages, I end up with all three variables containing the data from

RE: [PHP] session_register() - Netscape workaround?

2001-05-07 Thread Johnson, Kirk
-Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] session_register() - Netscape workaround? I thought of a workaraound for Netscape and would like some feedback on how to do it and whether it is a good idea. I manually edited the session file

Re: [PHP] session_register() - Netscape workaround?

2001-05-05 Thread Jennifer
Johnson, Kirk wrote: -Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] session_register() 1. What browser are you using? I, and others, have seen erratic results with sessions using Netscape 4.x. If this is your browser, try your code

Re: [PHP] session_register() - Netscape workaround?

2001-05-05 Thread Jennifer
Jennifer wrote: I thought of a workaraound for Netscape and would like some feedback on how to do it and whether it is a good idea. I manually edited the session file and Netscape was able to read the variable on subsequent pages. It just can't seem to write it. So I thought, until

Re: [PHP] session_register()

2001-05-05 Thread Alexander Skwar
So sprach Matthew Luchak am Fri, May 04, 2001 at 11:57:50AM -0400: I would be very interested in hearing of any developments with session anomilies.. Although you've posted the question twice in the message, I still think you've forgot one minor point - your question! :) Alexander Skwar --

RE: [PHP] session_register()

2001-05-04 Thread Johnson, Kirk
-Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] session_register() 1. What browser are you using? I, and others, have seen erratic results with sessions using Netscape 4.x. If this is your browser, try your code with another browser

RE: [PHP] session_register()

2001-05-04 Thread Matthew Luchak
I would be very interested in hearing of any developments with session anomilies.. Netscape® Communicator 4.76 M$2000 PHP Version 4.0.4pl1 System Windows NT 5.0 build 2195 Server API CGI ZEND_DEBUG disabled Thread Safety enabled works using: ?php session_register (sidcount); $sidcount

[PHP] session_register() behavior

2001-05-04 Thread Jon Peccarelli
When I was running PHP 4.0.4 on Apache 1.3/RH Linux 6.1, the following code worked perfect: file1.php session_start(); session_register(var1); $var1 = a value; file2.php session_start(); session_register(var2); $var2 = some value; file3.php session_start(); print

RE: [PHP] session_register()

2001-05-03 Thread Warren Vail
: Re: [PHP] session_register() Johnson, Kirk wrote: -Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Do you need to register a variable with the session before you assign it a value? Not in my experience. session_register should return true if the variable

Re: [PHP] session_register()

2001-05-03 Thread Jennifer
Warren Vail wrote: When the session_register is executed the session contents are partially updated. Your first test actually executed the session_register that posted the variable with 0 string length, because the variable had not yet been initialized (the bad return is the only

RE: [PHP] session_register()

2001-05-03 Thread Johnson, Kirk
: Wednesday, May 02, 2001 11:55 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] session_register() Johnson, Kirk wrote: -Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Do you need to register a variable with the session before you assign it a value? Not in my

Re: [PHP] session_register()

2001-05-03 Thread Jon Peccarelli
ROTECTED]] Sent: Wednesday, May 02, 2001 11:55 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] session_register() Johnson, Kirk wrote: -Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Do you need to register a variable with the session before you assign it

Re: [PHP] session_register()

2001-05-03 Thread Jennifer
This is bad, bad, bad. I tried using another browser as you suggested (since I was using Netscape 4.7) and the session_register worked. I still got different results than you though. Read throughout for more comments. Johnson, Kirk wrote: Jennifer, there are at least two of us totally

[PHP] session_register()

2001-05-02 Thread Jennifer
I have been racking my brain with this for hours and I am not getting anywhere. session_register doesn't seem to be registering my variables. Several questions to see if I am even on the right track. Do you need to register a variable with the session before you assign it a value?

Re: [PHP] session_register()

2001-05-02 Thread Richard Verstegen
Maybe this example will help you: Program 1: ?php session_start(); session_register('varA'); session_register('varA'); varA = varB = ... ? Program 2: ?php session_start(); print($varA $varB); ? Richard Jennifer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

RE: [PHP] session_register()

2001-05-02 Thread Johnson, Kirk
-Original Message- From: Jennifer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 2:51 AM To: [EMAIL PROTECTED] Subject: [PHP] session_register() Do you need to register a variable with the session before you assign it a value? Not in my experience. session_register

RE: [PHP] session_register()

2001-04-20 Thread Johnson, Kirk
I do. Kirk -Original Message- From: Wade [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 9:16 AM To: [EMAIL PROTECTED] Subject: [PHP] session_register() I am registering a number of variables. Can I combine them into one session_register, such as session_register(&quo

[PHP] Session_register

2001-04-20 Thread Alok K. Dhir
Is there a down side to registering a var with the session more than once? I.e. which would be preferred and why in a frequently accessed page in a web application: session_register('var'); or If (!session_is_registered('var') session_register('var'); FWIW - either

Re: [PHP] session_register()

2001-04-20 Thread Martín Marqués
On Vie 20 Abr 2001 18:15, Wade wrote: I am registering a number of variables. Can I combine them into one session_register, such as session_register("one", "two" ... "n")? Well, the manuals say YES! Saludos... :-) -- El mejor sistema operativo es aquel que te da de comer. Cuida tu dieta.

[PHP] session_register in function

2001-02-24 Thread Jon Rosenberg
The variable I register before the function becomes available in the session to other pages...the variable I register inside the function are not accessible in the session to ohter pages. Is this normal? How can I work around this? Thanks! PHP4.0.4pl1 on Linux. sample code: ?

Re: [PHP] session_register in function

2001-02-24 Thread Jeff Lacy
I had this same exact problem just today. It all stems from the variable namespace, I think A similar code 'snippet' is shown below. I just made it up, but I think it illustrates my point. ?php session_start (); function crud ($user, $password) { session_register ('user');

Re: [PHP] session_register()

2001-02-15 Thread Richard Lynch
? session_start(); session_register('email'); $session = session_id(); $userid = '$user'; $sql = "SELECT * FROM users WHERE user='$user' and pass='$pass'"; if ($num == 1) { include "quote2.php"; } Unless quote2.php sets $email, you've never set it to anything. You've

[PHP] session_register()

2001-02-12 Thread Peter Houchin
Hiya Could some one please give me a step in the right direction, I've created a simple login script that checks the data base against the user name and password that the user has inputted in aform, i want to have stored in the session their user name and password, as well as their email. I can