[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)) { generate_

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 kno

[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 wo

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] Sess

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

2003-02-18 Thread Rich Gray
Sent: 18 February 2003 11:20 > To: '[EMAIL PROTECTED]' > Subject: [PHP-DB] Session variables when global variables switched off > [Sorry, first message accidentally fired off to quickly ] > > > [sorry for the incomplete posting of a couple moments ago. I hit ctl > someth

[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 w

[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

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

[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 http://w

RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Peter Beckman
ttype():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 &

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

RE: [PHP-DB] Session variables and arrays

2002-10-30 Thread Peter Beckman
nt strlen($_SESSION['categories']); If you get "5", then the variable might be a string with the contents being the word "Array". Pretty doubtful, but we're being thorough here. Peter > Hmph > > - Ryan > > > -Original Message----- >

RE: [PHP-DB] Session variables and arrays

2002-10-29 Thread Ryan Neudorf
October 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: > > $_SESSION['foo'] = array("hi"=>"bye"); > > print_r($_SESSI

Re: [PHP-DB] Session variables and arrays

2002-10-29 Thread Peter Beckman
Well, can't say I see the same problem: "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 assign categories? Maybe the var

[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. T

[PHP-DB] session variables and form

2002-09-19 Thread Smita Manohar
hello all.. in my site, where im using phpscript, some users are allowed to del/modify contents of the database. for this they have been provided login name and password, after user loggs into the secure area, session starts. since here, user can modify/del contents of database, i needed to us

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'] = array($name,$employer,$e

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

2002-05-15 Thread matt stewart
N_VARS['sess_address']=$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.

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

2002-05-15 Thread Terry Romine
This is freaky. If I change the 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, May 15, 2002, at 09:

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 matt stewart
5:49 To: [EMAIL 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 s

[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

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 us

[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 This file is invoked in all my script files. (The system works without ses

[PHP-DB] Session variables

2001-03-13 Thread Mick Lloyd
I'm experimenting with sessions and note that you seem to able pass a query result id via an include but not via an . Is this correct or have I got it wrong? Do I need to do something to $session[result] before passing it via ? Example scripts: session.phtml: $connection = mysql_connect($DBHost,