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

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 $_SESSION

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 th

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 regis

[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 register_globals=

[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:[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

[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