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

RE: [PHP-DB] php session

2002-12-02 Thread Ford, Mike [LSS]
> -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

RE: [PHP-DB] php session

2002-12-01 Thread Chris Barnes
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? > > --

RE: [PHP-DB] php session

2002-12-01 Thread John W. Holmes
> 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

Re: [PHP-DB] PHP Session End.

2002-06-03 Thread Kevin Stone
There is no way to know if the user has left the website. About all you can do is save a timestamp in the database for every recordable action the user performs then if no actions take place for say 10 minutes that user is said to be 'logged out' and you delete the database row and deallocate any