RE: [PHP-DB] [PHP]: session problem

2004-06-25 Thread Ford, Mike [LSS]
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"; > >

RE: [PHP-DB] [PHP]: session problem

2004-06-24 Thread Hutchins, Richard
: [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

Re: [PHP-DB] [PHP]: session problem

2004-06-24 Thread H. J. Wils
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

Re: [PHP-DB] [PHP]: session problem

2004-06-24 Thread Daniel Clark
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

RE: [PHP-DB] [PHP]: session problem

2004-06-24 Thread H. J. Wils
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

Re: [PHP-DB] [PHP]: session problem

2004-06-24 Thread Jason Wong
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

RE: [PHP-DB] [PHP]: session problem

2004-06-24 Thread Hutchins, Richard
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]

Re: [PHP-DB] [PHP]: session problem

2004-06-24 Thread Matt Matijevich
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.

Re: [PHP-DB] [PHP]: session problem

2004-06-24 Thread Daniel Clark
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

Re: [PHP-DB] [PHP]: session problem

2004-06-24 Thread H. J. Wils
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"]

Re: [PHP-DB] [PHP]: session problem

2004-06-24 Thread Matt Matijevich
[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

Re: [PHP-DB] [PHP]: session problem

2004-06-24 Thread H. J. Wils
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:

Re: [PHP-DB] [PHP]: session problem

2004-06-24 Thread Matt Matijevich
[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