Re: [PHP] Session Vars not staying active

2013-08-03 Thread Daniel P. Brown
On Aug 3, 2013 3:03 PM, "dealTek" wrote: > > Hi all, > > > I am having trouble with session vars. > > I'm trying to implement the credit card direct pay method outlined here... > > http://developer.authorize.net/api/dpm/ > > - Basically, page 1 is my form that goes outside my site to the cc gatewa

[PHP] Session Vars not staying active

2013-08-03 Thread dealTek
Hi all, I am having trouble with session vars. I'm trying to implement the credit card direct pay method outlined here... http://developer.authorize.net/api/dpm/ - Basically, page 1 is my form that goes outside my site to the cc gateway company then comes back with a result... (PG2) Problem:

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Tommy Pham
> -Original Message- > From: Cheryl Sullivan [mailto:csull...@shh.org] > Sent: Friday, September 17, 2010 7:51 AM > To: Peter Lind; tommy...@gmail.com > Cc: a...@ashleysheridan.co.uk; php-general@lists.php.net > Subject: RE: [PHP] Session Vars loaded from MSSQL Query dr

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick (SOLVED)

2010-09-17 Thread Cheryl Sullivan
P as well - Thanks again - -Original Message- From: Andrew Ballard [mailto:aball...@gmail.com] Sent: Friday, September 17, 2010 11:15 AM To: Cheryl Sullivan Cc: Peter Lind; tommy...@gmail.com; a...@ashleysheridan.co.uk; php-general@lists.php.net Subject: Re: [PHP] Session Vars loaded f

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Andrew Ballard
On Fri, Sep 17, 2010 at 10:50 AM, Cheryl Sullivan wrote: > Hi there - just to clear things up, I didn't mean your answer was irrelevant. >  It was an excellent point - I just took the function call encompassing the > query string out of the code I posted to avoid people having to read too > muc

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Cheryl Sullivan
quot;; print "hidden_SSN = ".$_POST['hdnSSN'].""; print "hidden_CostCenter = ".$_POST['hdnCostCenter'].""; print "session_empFName = ".$_SESSION['empFName'].""; print "session_userLastName = ".$_SESSIO

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Andrew Ballard
On Fri, Sep 17, 2010 at 8:13 AM, Cheryl Sullivan wrote: > Hi Andrew - I didn't mean to ignore your reply... > > Here is your earlier post - > > " The fact that you can echo the $_SESSION information on the same page and > they contain the correct values suggest to me that the issue of MySQL/MSSQL

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Cheryl Sullivan
s to me? Thanks - -Original Message- From: Andrew Ballard [mailto:aball...@gmail.com] Sent: Thursday, September 16, 2010 2:21 PM To: Cheryl Sullivan Cc: Tommy Pham; php-general@lists.php.net Subject: Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query st

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Tommy Pham
> -Original Message- > From: Cheryl Sullivan [mailto:csull...@shh.org] > Sent: Thursday, September 16, 2010 11:12 AM > To: Tommy Pham; php-general@lists.php.net > Subject: RE: [PHP] Session Vars loaded from MSSQL Query drop, those > loaded from MYSQL Query stick > >

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Peter Lind
On 16 September 2010 20:03, Cheryl Sullivan wrote: > We are actually running the query through a function that removes single > ticks, etc to avoid this, but I didn't think that was relevant to the > question so I didn't include it.  Thanks, though! You're the one with the problem you don't under

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Andrew Ballard
On Thu, Sep 16, 2010 at 10:26 AM, Cheryl Sullivan wrote: [snip] > When I echo all five $_SESSION vars from here, they are all populated. > Then I can either redirect or form post to the next page. In either > case, the $_SESSION vars populated from SQL Server ( the SSN and Cost > Center vars) are

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
Tommy Pham [mailto:tommy...@gmail.com] Sent: Thursday, September 16, 2010 11:39 AM To: php-general@lists.php.net Subject: RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick > -Original Message- > From: Cheryl Sullivan [mailto:csull...@shh.org] > Sent:

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
September 16, 2010 12:03 PM To: Cheryl Sullivan Cc: a...@ashleysheridan.co.uk; php-general@lists.php.net Subject: Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick On 16 September 2010 16:26, Cheryl Sullivan wrote: > Absolutely - > > > > Th

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Peter Lind
On 16 September 2010 16:26, Cheryl Sullivan wrote: > Absolutely - > > > > This is from the first page > > > > > $_SESSION['UserLastName'] = strtolower(trim($_POST['txtLastName'])); > > $_SESSION['BadgeID'] = trim($_POST['txtBadgeID']); > > > > //access MS SQL Server database > > $q1 = "select * f

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Tommy Pham
> -Original Message- > From: Cheryl Sullivan [mailto:csull...@shh.org] > Sent: Thursday, September 16, 2010 8:33 AM > To: Tommy Pham; php-general@lists.php.net > Subject: RE: [PHP] Session Vars loaded from MSSQL Query drop, those > loaded from MYSQL Query stick >

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
tommy...@gmail.com] Sent: Thursday, September 16, 2010 11:00 AM To: php-general@lists.php.net Subject: RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick > -Original Message- > From: Cheryl Sullivan [mailto:csull...@shh.org] > Sent: Thursday, Sept

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Andrew Ballard
On Thu, Sep 16, 2010 at 10:26 AM, Cheryl Sullivan wrote: > Absolutely - > > This is from the first page > > > $_SESSION['UserLastName'] = strtolower(trim($_POST['txtLastName'])); > > $_SESSION['BadgeID'] = trim($_POST['txtBadgeID']); > > //access MS SQL Server database > > $q1 = "select * from em

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Tommy Pham
> -Original Message- > From: Cheryl Sullivan [mailto:csull...@shh.org] > Sent: Thursday, September 16, 2010 7:12 AM > To: php-general@lists.php.net > Subject: [PHP] Session Vars loaded from MSSQL Query drop, those loaded > from MYSQL Query stick > > Hi there – I’

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
__ From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Thursday, September 16, 2010 10:14 AM To: Cheryl Sullivan Cc: php-general@lists.php.net Subject: Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick On Thu, 2010-09-16 at 10:11 -0400, Cheryl Sulliv

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Ashley Sheridan
On Thu, 2010-09-16 at 10:11 -0400, Cheryl Sullivan wrote: > Hi there – I’m new to this news group. Any help with this is appreciated – > > When I populate session vars from a MYSQL query, they are still there when I > change pages. If I populate them from an MSSQL query, they drop. > > It d

[PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-16 Thread Cheryl Sullivan
Hi there – I’m new to this news group. Any help with this is appreciated – When I populate session vars from a MYSQL query, they are still there when I change pages. If I populate them from an MSSQL query, they drop. It doesn't matter if I get to the next page using a header redirect or a fo

[PHP] PHP Session Vars & Flash Movie

2007-12-17 Thread Luis Magaña
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a small application made in flash, that uses a set of PHP scripts to pull data from a database. I've added sessions to this scripts so they would only return the data if a proper session has been initialized, the flash movie is hosted in a

[PHP] Session vars in parent dir

2007-10-30 Thread Nathan Hawks
Howdy all, I have a login app that runs at: DOCUMENT_ROOT/admin/index.php and an AJAX action at: DOCUMENT_ROOT/somefile.php The login app and all the scripts based under the admin/ folder have no problems, but the AJAX scripts don't know jack about any stinkin $_SESSION var. I can only pre

Re: [PHP] session vars

2006-03-21 Thread Warren Vail
Sessions only have access to Global Vars. http://us3.php.net/manual/en/ref.session.php I understand it's because the local vars inside a function are free'd when you exit the function, and the actual post to the session record occurs during script wrappup operations, long after exiting the fun

Re: [PHP] session vars

2006-03-21 Thread tedd
Hipeople. I've a system where i use session and all is working fine. But has something that don't work and i can't to find the cause. When a use the include function, the file included don't see the session vars. Anyone knows why it's happen? Thanks. -- ---

[PHP] session vars

2006-03-21 Thread João Cândido de Souza Neto
Hipeople. I've a system where i use session and all is working fine. But has something that don't work and i can't to find the cause. When a use the include function, the file included don't see the session vars. Anyone knows why it's happen? Thanks. -- ---

[PHP] session vars on Windows Server?

2006-02-24 Thread Ing. Tom�s Liendo
Hi I have the following problem: I developed a system that it runs perfec in my PC and in hosting server with Linux. But the session vars don't work in a hosting server with Windows... The technical contact of the Server with Windows says me that the problem is a space before the function sessio

Re: [PHP] Session Vars and Performance

2005-02-18 Thread Greg Donald
On Fri, 18 Feb 2005 08:56:59 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > The code misses one important thing - row locking. For concurent > requests, sess_open must block until the first request does > sess_close(). So you need to use InnoDB's row locking or > application-level GET_LOCK() a

Re: [PHP] Session Vars and Performance

2005-02-18 Thread Marek Kilimajer
Greg Donald wrote: On Wed, 16 Feb 2005 09:36:26 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: It's literally an hour's work to alter the code to use MySQL to store the sessions instead of the hard drive. Not really, maybe 5 minutes.. here's the code: The code misses one important thing -

Re: [PHP] Session Vars and Performance

2005-02-17 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > On 16 Feb 2005 Richard Lynch wrote: > >> Use the exact same session stuff you have now and just dump the >> serialized data into SQL using the 5 functions for session handling. > > Oh, OK, that's what you meant about the 5 functions. I am not sure of > the advantage to t

Re: [PHP] Session Vars and Performance

2005-02-16 Thread trlists
On 16 Feb 2005 Richard Lynch wrote: > Use the exact same session stuff you have now and just dump the > serialized data into SQL using the 5 functions for session handling. Oh, OK, that's what you meant about the 5 functions. I am not sure of the advantage to that, actually something I've alwa

Re: [PHP] Session Vars and Performance

2005-02-16 Thread Greg Donald
On Wed, 16 Feb 2005 09:36:26 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > It's literally an hour's work to alter the code to use MySQL to store the > sessions instead of the hard drive. Not really, maybe 5 minutes.. here's the code: Make the table in your database: CREATE TABLE `sess

Re: [PHP] Session Vars and Performance

2005-02-16 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > On 15 Feb 2005 Richard Lynch wrote: > >> Throw an ab (Apache Benchmark) test at it and find out. >> >> Don't just guess or sit there wondering. >> >> You could run test in about the time it took to compose this email -- > > Perhaps if you are already familiar with ab, whi

Re: [PHP] Session Vars and Performance

2005-02-15 Thread trlists
On 15 Feb 2005 Greg Donald wrote: > > If you have to choose between a meaningful variable name and performance > > considerations, buy more hardware! :-) > > > > The cost you'll save in the long run for code maintenance will make it > > worth it. > > Comments in the code make using short session

Re: [PHP] Session Vars and Performance

2005-02-15 Thread trlists
On 15 Feb 2005 Richard Lynch wrote: > Throw an ab (Apache Benchmark) test at it and find out. > > Don't just guess or sit there wondering. > > You could run test in about the time it took to compose this email -- Perhaps if you are already familiar with ab, which I'm not ... and if the server

Re: [PHP] Session Vars and Performance

2005-02-15 Thread Greg Donald
On Tue, 15 Feb 2005 13:01:45 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > If you have to choose between a meaningful variable name and performance > considerations, buy more hardware! :-) > > The cost you'll save in the long run for code maintenance will make it > worth it. Comments i

Re: [PHP] Session Vars and Performance

2005-02-15 Thread Richard Lynch
Greg Donald wrote: > On Mon, 14 Feb 2005 16:03:10 -0500, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> wrote: >> I have a multi-page form which I build up and store in session >> variables. The data saved includes all an internal list of items on >> the form (derived from a database table), all the form

Re: [PHP] Session Vars and Performance

2005-02-14 Thread Greg Donald
On Mon, 14 Feb 2005 16:03:10 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have a multi-page form which I build up and store in session > variables. The data saved includes all an internal list of items on > the form (derived from a database table), all the form field specs > (derived fr

[PHP] Session Vars and Performance

2005-02-14 Thread trlists
I have a multi-page form which I build up and store in session variables. The data saved includes all an internal list of items on the form (derived from a database table), all the form field specs (derived from the internal item list), the data for the fields (from another table), default dat

Re: [PHP] Session Vars and Performance

2005-02-14 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I have a multi-page form which I build up and store in session variables. The data saved includes all an internal list of items on the form (derived from a database table), all the form field specs (derived from the internal item list), the data for the fields (from an

[PHP] Session Vars and Performance

2005-02-14 Thread Tom Rawson
I have a multi-page form which I build up and store in session variables. The data saved includes all an internal list of items on the form (derived from a database table), all the form field specs (derived from the internal item list), the data for the fields (from another table), default dat

Re: [PHP] Session vars not echoing?

2003-11-20 Thread John W. Holmes
Jas wrote: [Script registering vars - sessions.php] /* Format Date & Time */ $hour = (date("H:i:s")); $day = (date("d")); $date = (date("F $day, Y")); Don't you mean $data = date('F d, Y'); I don't see why you're calculating $day and then putting it in date(). /* Register vars */ $_SESSION['date

[PHP] Session vars not echoing?

2003-11-20 Thread Jas
Not sure why this is happening but I think it has something to do with an include statement... [Server environment] Apache/2.0.47 (Unix) DAV/2 PHP/4.3.3 register_globals On On report_memleaks On On safe_mode Off Off safe_mode_exec_dir no value no value Session Support enabled [Script registering

Re: [PHP] session vars for other session name

2003-11-10 Thread David T-G
Marek, et al -- ...and then Marek Kilimajer said... % % David T-G wrote: ... % >or so. But what does that buy me? How will then setting my password at % >one level (presentation) also set it at another (gallery)? % % You will have the same session variables accessible in your script. Oho. Th

Re: [PHP] session vars for other session name

2003-11-10 Thread Marek Kilimajer
David T-G wrote: I'm a bit confused... I haven't tried this yet, so maybe it will all come clear when I do, but I'm still confused! So where I currently have session_name($wfname) ; session_start ; ... I'd instead have session_name($wfname) ; $_COOKIE[$wfname] = $_COOKIE['locscout'] ;

Re: [PHP] session vars for other session name

2003-11-10 Thread David T-G
Marek, et al -- ...and then Marek Kilimajer said... % % David T-G wrote: % % >I have a picture gallery application which uses sessions. As part of the % >config we set the session name; the default is 'locscout'. % > % >I also have a portfolio/presentation application layered on top of this % >

Re: [PHP] session vars for other session name

2003-11-10 Thread Marek Kilimajer
David T-G wrote: Hi, all -- I have a picture gallery application which uses sessions. As part of the config we set the session name; the default is 'locscout'. I also have a portfolio/presentation application layered on top of this (and almost ready for release! :-) :-) with its own session name

[PHP] session vars for other session name

2003-11-10 Thread David T-G
Hi, all -- I have a picture gallery application which uses sessions. As part of the config we set the session name; the default is 'locscout'. I also have a portfolio/presentation application layered on top of this (and almost ready for release! :-) :-) with its own session name. When I start o

Re: [PHP] Session Vars

2003-06-19 Thread CPT John W. Holmes
> setting up some pages to allow users to log in, and store their userID in a > session var. > for development purposes, i've installed AMP on my windows box. > > -everything parses fine > -register globals is on. > > problem: session vars do not seem to be carrying over pages, even when i set > th

[PHP] Session Vars

2003-06-18 Thread Jason Paschal
setting up some pages to allow users to log in, and store their userID in a session var. for development purposes, i've installed AMP on my windows box. -everything parses fine -register globals is on. problem: session vars do not seem to be carrying over pages, even when i set the session_id to

Re: [PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Jason Wong
On Saturday 11 January 2003 19:47, Jason k Larson wrote: > FYI: > Don't like auto register globals ... try the following at the beginning > of your script. > > ini_set ('register_globals','Off'); > > Works for me places I'm hosted at. register_globals cannot be set at runtime (to be precise, it ca

Re: [PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Jason k Larson
FYI: Don't like auto register globals ... try the following at the beginning of your script. ini_set ('register_globals','Off'); Works for me places I'm hosted at. HTH, Jason k Larson Noel Wade wrote: Hi all, So I have a session variable; but with register_globals active on the server I'm ho

[PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Noel Wade
Hi all, So I have a session variable; but with register_globals active on the server I'm hosted at (no way to turn it off), just checkng for "$varX" in my script could retrieve the session variable, a GET variable with the same name, or a POST variable with the same name - and as a security concer

[PHP] Session Vars Problem

2002-09-12 Thread Krispi
Hi, I have a problem when registering Session variables. Let me describe. I have 2 files. In the first one initialization is done and some session registering. The second one is my main application. If I call a method from the first file in my main file , variables are not registered. I use sess

[PHP] Session Vars problem

2002-09-11 Thread Krispi
Hi, I have a problem when registering Session variables. Let me describe. I have 2 files. In the first one initialization is done and some session registering. The second one is my main application. If I call a method from the first file in my main file , variables are not registered. I use sess

Re: [PHP] session vars and frames

2002-07-01 Thread Richard Lynch
I'm registering if people are logged in. The login page is situated in >> the mainFrame. Now in my leftFrame I want to put the status (i.e. "you are logged in as .") When people are succesfully logged in I register their name as session_register('session_log

Re: [PHP] session vars and frames

2002-06-28 Thread W. Enserink
hmmm, i'm not passing anything around, at least not on purpose. Wilbert - Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Friday, June 28, 2002 11:14 AM Subject: Re: [PHP] session vars and fram

Re: [PHP] session vars and frames

2002-06-28 Thread Justin French
Are you passing the session ID around in the URL, or in cookies? Justin French on 28/06/02 6:28 PM, Wilbert Enserink ([EMAIL PROTECTED]) wrote: > hi all, > > > I'm registering if people are logged in. The login page is situated in the > mainFrame. > Now in my leftFrame I want to put the stat

[PHP] session vars and frames

2002-06-28 Thread Wilbert Enserink
hi all, I'm registering if people are logged in. The login page is situated in the mainFrame. Now in my leftFrame I want to put the status (i.e. "you are logged in as .") When people are succesfully logged in I register their name as session_register('session_loginname'); I then refresh th

Re: [PHP] session vars with recursive form

2001-01-12 Thread bill
O.K., this seems to work: --- $thevals=array(alpha,beta,gamma,delta,epsilon); while (list($key, $val) = each($thevals)) { if ($HTTP_POST_VARS["$val"] && (!session_is_registered("$val"))) { session_register("$val"); } } --- bill wrote: > How can I correctl

RE: [PHP] session vars with recursive form

2001-01-12 Thread Javier Muniz
ailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 11:25 AM To: [EMAIL PROTECTED] Subject: [PHP] session vars with recursive form How can I correctly register session vars on a recursive form? If I call a page repeatedly using: The earlier variables keep getting lost. How can I registe

[PHP] session vars with recursive form

2001-01-12 Thread bill
How can I correctly register session vars on a recursive form? If I call a page repeatedly using: The earlier variables keep getting lost. How can I register the session variables correctly? Each subsequent page should set its own variable while remembering all those previously set. Right n