> -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
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
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
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
(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=
> $_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
[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
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
8 matches
Mail list logo