On 24 June 2004 16:44, H. J. Wils wrote:
> this is the code, but this code works on my hosting provider but not
> on my own server. I think i have to change settings in php.ini but
> dont know which...
> first page:
>
> session_start();
>
> include "connect.php";
> include "functions.php";
>
>
: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP-DB] [PHP]: session problem
>
>
> this is the code, but this code works on my hosting provider
> but not on my
> own server. I think i have to change settings in php.ini but
> dont know
> which...
> first p
this is the output:
Array
(
)
very empty ;)
From: "Matt Matijevich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Subject: Re: [PHP-DB] [PHP]: session problem
Date: Thu, 24 Jun 2004 10:50:01 -0500
MIME-Version: 1.0
Received: from stimpy.alliancetechno
What are you setting $_SESSION['sid'] to?
> i do ($_SESSION['sid']), but the variables remain empty...
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
indeed...
From: "Hutchins, Richard" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] [PHP]: session problem
Date: Thu, 24 Jun 2004 11:52:38 -0400
MIME-Version: 1.0
Received: from pb1.pair.com ([216.92.131.4]) by mc6-f23.hotmail.com with
Microsoft SMTPSVC(5.0.2195.67
On Thursday 24 June 2004 23:43, H. J. Wils wrote:
[snip]
>$_SESSION['logged_in'] = true;
>$_SESSION['sid'] = $sid;
>$_SESSION['user'] = $uid;
>
>$dt = date("Y-m-d H:i:s");
You should always session_wr
So, on your second page you NEVER see the "Welcome..." get echoed out? It
always forwards you to the user.php page?
> -Original Message-
> From: H. J. Wils [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 24, 2004 11:44 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
do you get any output on the second page if you do this?
';
print_r($_SESSION);
print '';
if ( isset($_SESSION['logged_in'])){
echo "Welcome...";
}else{
header("location: user.php?action=9");
}
?>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
Are you getting any errors displayed?
The php.ini file has to have a directory specified for the session temp
variables.
> I want to use sessions to check wether a user is logged in or not.
> Therefore,I use session_start and session_register. When I registere the
> values on the same page, they
this is the code, but this code works on my hosting provider but not on my
own server. I think i have to change settings in php.ini but dont know
which...
first page:
session_start();
include "connect.php";
include "functions.php";
$user= $_GET["email"];
$ww = $_GET["ww"]
[snip]
i do ($_SESSION['sid']), but the variables remain empty...
[/snip]
If you are using the array forget about session_register.
http://www.php.net/session_register
Could you post a little code? That will make this easier to solve.
--
PHP Database Mailing List (http://www.php.net/)
To unsu
i do ($_SESSION['sid']), but the variables remain empty...
From: "Matt Matijevich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Subject: Re: [PHP-DB] [PHP]: session problem
Date: Thu, 24 Jun 2004 09:58:15 -0500
MIME-Version: 1.0
Received:
[snip]
But when I ask the value of
a registered session variable on another page, it is empty?!?! Does
anyone
know how this comes? i am using session_start() at every page..
[/snip]
try the $_SESSION array for starage of session variables.
--
PHP Database Mailing List (http://www.php.net/)
To
I want to use sessions to check wether a user is logged in or not.
Therefore,I use session_start and session_register. When I registere the
values on the same page, they all seem to work. But when I ask the value of
a registered session variable on another page, it is empty?!?! Does anyone
know
I have been having trouble with PHP sessions, the session variables are not
able to be called through the script.
If have commented the area at the bottome where the session variable is NULL
when var dump is called to check it (about 20 lines from the bottom...
depending on if the text is wrapp
> -Original Message-
> From: Chris Barnes [mailto:[EMAIL PROTECTED]]
> Sent: 02 December 2002 02:14
>
> On Mon, 2002-12-02 at 02:43, John W. Holmes wrote:
> >
> > No, it shouldn't.
> >
> > So, the links are correct on one page, and they disappear
> on the second
> > page? Is there a rea
On Mon, 2002-12-02 at 02:43, John W. Holmes wrote:
>
> No, it shouldn't.
>
> So, the links are correct on one page, and they disappear on the second
> page? Is there a reason you're passing the SID in the URL and not using
> cookies?
>
> Hmmm, found this in the manual. Maybe it applies?
>
> --
> I'm having a little trouble getting sessions to work properly with
php.
> I have put session_start(); on all pages before any data is printed.
The
> session will start on the first loading of the page but after a link
is
> clicked the session seems to die i have no idea why.
>
> for the links on
hi people,
I'm having a little trouble getting sessions to work properly with php.
I have put session_start(); on all pages before any data is printed. The
session will start on the first loading of the page but after a link is
clicked the session seems to die i have no idea why.
for the links on
om: "Hayan Al Mamoun" <[EMAIL PROTECTED]>
To: "PHPList (E-mail)" <[EMAIL PROTECTED]>
Sent: Monday, June 03, 2002 1:49 AM
Subject: [PHP-DB] PHP Session End.
> Dear ALL,
>
> I'm programming a web site that has a small shopping cart to sell virtual
> inf
Dear ALL,
I'm programming a web site that has a small shopping cart to sell virtual
information, I must allocate the information I'm selling (Phone Card PIN
Codes) and block it from others, once a user adds it to his cart, and on the
other hand, I must set it free (DeAllocate it) when the user le
21 matches
Mail list logo