[PHP-DB] session variables when accessing the same page

2003-10-11 Thread Andy Cantrell
Working with storing and reusing session variables. If I use t1.php to generate a form, and the form calls t2.php, the session vars are available. If upgrade t1.php to recognize if it is the first time it has been called versus the second time e.g. if (isset($some_session_var)) {

[PHP-DB] Session variables

2003-04-06 Thread Alexa Kirk
I am using session variables throughout an application, and every time I try to log in as someone else after the first time I've logged in, it uses the userid of the first person that logged in. I know the session has to be destroyed or something, so I wanted to make a logoff page, but it is not

Re: [PHP-DB] Session variables

2003-04-06 Thread Paul Burney
on 4/6/03 10:39 PM, Alexa Kirk at [EMAIL PROTECTED] appended the following bits to my mbox: I am using session variables throughout an application, and every time I try to log in as someone else after the first time I've logged in, it uses the userid of the first person that logged in. I know

[PHP-DB] Session variables when global variables switched off

2003-02-18 Thread Baumgartner Jeffrey
I am making a section on a web site which requires that visitors log-in. Log-in, password, etc are in an MySQL table. I am using (via a web host) PHP 4.2.2 with global variables turned off. Until now, I have worked with a different host in which global variables were switched on. The way it works

[PHP-DB] Session variables when global variables switched off [Sorry, first message accidentally fired off to quickly ]

2003-02-18 Thread Baumgartner Jeffrey
[sorry for the incomplete posting of a couple moments ago. I hit ctl something or other and outlook fired off the e-mail against my wishes!] I am making a section on a web site which requires that visitors log-in. Log-in, password, etc are in an MySQL table. I am using (via a web host) PHP 4.2.2

RE: [PHP-DB] Session variables when global variables switched off [Sorry, first message accidentally fired off to quickly ]

2003-02-18 Thread Rich Gray
['verified'])) { // push user back to login page header('Location: http://mysite/index.php'); exit(); } ? HTH Rich -Original Message- From: Baumgartner Jeffrey [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 11:20 To: '[EMAIL PROTECTED]' Subject: [PHP-DB] Session

RE: [PHP-DB] Session variables when global variables switched off [Sorry, firs t message accidentally fired off to quickly ]

2003-02-18 Thread Clarkson, Nick
Try changing your code to if ($_SESSION['verified'] != yes){ I think that's the problem Nick -Original Message- From: Baumgartner Jeffrey [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 11:20 To: '[EMAIL PROTECTED]' Subject: [PHP-DB] Session variables when global variables

[PHP-DB] session variables

2002-11-07 Thread kevin myers
I have a question: I have a site, http://www.darkrpg.ionichost.com, and htp://www.mail.ionichost.com. I'm trying to find a way of passing the session varible from darkrpg to mail that way they need not log in again. Is it possiable with out cookies? And another question i have is on

Re: [PHP-DB] session variables

2002-11-07 Thread Maxim Maletsky
kevin myers [EMAIL PROTECTED] wrote... : I have a question: I have a site, http://www.darkrpg.ionichost.com, and htp://www.mail.ionichost.com. I'm trying to find a way of passing the session varible from darkrpg to mail that way they need not log in again. Is it possiable with out

RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Ryan Neudorf
Here are the results: is_array(): gettype():string strlen():5 -Original Message- From: Peter Beckman [mailto:beckman;purplecow.com] Sent: Wednesday, October 30, 2002 8:57 AM To: Ryan Neudorf Cc: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Session variables and arrays On Wed, 30

RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Peter Beckman
-Original Message- From: Peter Beckman [mailto:beckman;purplecow.com] Sent: Wednesday, October 30, 2002 8:57 AM To: Ryan Neudorf Cc: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Session variables and arrays On Wed, 30 Oct 2002, Ryan Neudorf wrote: Ok. The categories are coming from

[PHP-DB] Session variables and arrays

2002-10-29 Thread Ryan Neudorf
I'm having a problem with session variables and arrays. I'm building a multi step sign up form and I need to store all the variable until the final step, when they are inputed to a database. I thought the best way to do this would be to store the contents for $HTTP_POST_VARS in session variables.

Re: [PHP-DB] Session variables and arrays

2002-10-29 Thread Peter Beckman
Well, can't say I see the same problem: ?php $_SESSION['foo'] = array(hi=bye); print_r($_SESSION['foo']); echo \n\n; print is_array($_SESSION['foo']); Outputs: X-Powered-By: PHP/4.2.2 Content-type: text/html Array ( [hi] = bye ) 1 Which is what I'd expect it to show. Now how did you

RE: [PHP-DB] Session variables and arrays

2002-10-29 Thread Ryan Neudorf
29, 2002 9:59 PM To: Ryan Neudorf Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Session variables and arrays Well, can't say I see the same problem: ?php $_SESSION['foo'] = array(hi=bye); print_r($_SESSION['foo']); echo \n\n; print is_array($_SESSION['foo']); Outputs: X-Powered

[PHP-DB] session variables across several pages

2002-05-15 Thread Terry Romine
First, forgive me if this seems to be cross post -- but it does involve both PHP and MySQL. My client requirements are: From their website, they display a list of classes. On registering for a class, the user is sent to a secure page that is hosted on a different secured server that does not

RE: [PHP-DB] session variables across several pages

2002-05-15 Thread matt stewart
PROTECTED] Subject: [PHP-DB] session variables across several pages First, forgive me if this seems to be cross post -- but it does involve both PHP and MySQL. My client requirements are: From their website, they display a list of classes. On registering for a class, the user is sent to a secure

Re: [PHP-DB] session variables across several pages

2002-05-15 Thread Terry Romine
I believe you.. I added $HTTP_SESSION_VARS['e_address'] = $e_address; in my process form code and it's still not updating the var. snippit from select_class.php where I have reference to $e_address: session_register(e_address); ... switch($doAction) {

Re: [PHP-DB] session variables across several pages

2002-05-15 Thread Terry Romine
This is freaky. If I change the form method='get' I can see the e_address coming in correctly, but it gets changed back to old value -- by the session_register('e_address')?? should I have something along the line of if(!$e_address) register_session('e_address'); ??? On Wednesday,

RE: [PHP-DB] session variables across several pages

2002-05-15 Thread matt stewart
']=$address; see if that makes any difference? -Original Message- From: Terry Romine [mailto:[EMAIL PROTECTED]] Sent: 15 May 2002 16:40 To: matt stewart Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] session variables across several pages This is freaky. If I change the form method='get' I can see

Re: [PHP-DB] session variables across several pages

2002-05-15 Thread Terry Romine
huh.. seems to work, now. I do the following: session_start(); session_register(form_data); if($doAction) { switch($doAction) { case Save Information: // save data in cookies $HTTP_SESSION_VARS['form_data'] =

[PHP-DB] Session variables

2001-08-14 Thread CK Raju
I have compiled php-4.0.6 from source with --enable-track-vars and --enable-trans-sid options (--with-mysql and --with-apxs). I use RH7.1 and mysql-3.23.41. In my /usr/local/test/connect.inc I use the following code ?php $login = $HTTP_SESSION_VARS[login]; $passwd =

Re: [PHP-DB] Session variables

2001-08-14 Thread Jason Wong
When I run main.html, I get the following error message : Warning : Cannot send session cookie - headers already sent by (output started at /var/www/html/main.html: 10) in /var/www/html/main.html on line 11 Where could I be wrong ? Raju You must make sure that in pages where you use