[PHP] Re: session variable problem

2011-04-01 Thread markb
On 3/25/2011 12:09 PM, markb wrote: Very rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create variables Second call - can read variables,

[PHP] Re: session variable problem

2011-03-31 Thread markb
On 3/25/2011 12:09 PM, markb wrote: Very rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create variables Second call - can read variables,

[PHP] Re: session variable problem

2011-03-29 Thread markb
On 3/25/2011 12:09 PM, markb wrote: Very rusty with PHP. We moved our web site to a new hosting service (godaddy). PHP changed from 4x to 5.2.17. I can no longer change $_SESSION variables after the first use. First call to form - start session create variables Second call - can read variables,

[PHP] Re: Session problem

2010-12-21 Thread Walter Caielli
I've fixed the problem. I don't know why, but suddenly windows prevents PHP from writing into C:\windows\temp directory. Moving the session and log files to another directory solved the problem. Until few days ago it worked. I've now to discovered what was changed in windows configuration.

Re: [PHP] Re: Session problem

2010-12-21 Thread Ravi Gehlot
Walter, Session variables may be using cookies which in turn create temp files for storing such cookies. Ravi. On Tue, Dec 21, 2010 at 11:32 AM, Walter Caielli walter.caie...@ars21.netwrote: I've fixed the problem. I don't know why, but suddenly windows prevents PHP from writing into

Re: [PHP] Re: SESSION variables: How much is too much?

2009-07-10 Thread kranthi
I prefer to reduce SESSION usage as much as possible. but I dont hesitate to use them if need arises. Points to note - Execution time: Only session_id is stored on the client's computer, and the actual data is stored on the server. so it will take nearly same time to process 100 session

[PHP] Re: SESSION variables: How much is too much?

2009-07-09 Thread tedd
At 7:30 PM -0400 7/8/09, D.M.Jackson wrote: Thanks guys. I was just wondering if it was common practice to pass all those variables in the SESSION object or if I was following a bad example because it was the first time that I had seen so many variables passed this way. If this is the typical

Re: [PHP] Re: SESSION variables: How much is too much?

2009-07-09 Thread D.M.Jackson
Hi, OK, I did a count on the session.inc file and there appears to be 37 variables accessed through the $_SESSION object. By and large they all appear to be scalar variables that contain a counter or a path or a boolean. Nothing that looks like a big object. Mostly stuff like

[PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Shawn McKenzie
D.M.Jackson wrote: Hi, I'm trying to learn php mostly by reading the docs and pulling through other peoples projects for reference examples. One particular application I'm looking at has a ton of variables being handled through the SESSION global variable, probably about 25 or so

[PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Al
Shawn McKenzie wrote: D.M.Jackson wrote: Hi, I'm trying to learn php mostly by reading the docs and pulling through other peoples projects for reference examples. One particular application I'm looking at has a ton of variables being handled through the SESSION global variable,

[PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread D.M.Jackson
Thanks guys. I was just wondering if it was common practice to pass all those variables in the SESSION object or if I was following a bad example because it was the first time that I had seen so many variables passed this way. If this is the typical way of handling this in php then I don't

[PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Shawn McKenzie
D.M.Jackson wrote: Thanks guys. I was just wondering if it was common practice to pass all those variables in the SESSION object or if I was following a bad example because it was the first time that I had seen so many variables passed this way. If this is the typical way of handling this

Re: [PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Paul M Foster
On Wed, Jul 08, 2009 at 06:55:24PM -0500, Shawn McKenzie wrote: D.M.Jackson wrote: Thanks guys. I was just wondering if it was common practice to pass all those variables in the SESSION object or if I was following a bad example because it was the first time that I had seen so many

[PHP] Re: Session variables

2009-02-07 Thread Nathan Rixham
Paul M Foster wrote: I'm not too clear on HTTP headers, cookies, and such. So here are questions related to that. Let's say I generate a random number that I want the user to enter in a form. When I generate the number, I store it in a session variable ($_SESSION). When the user submits the

Re: [PHP] Re: Session won't pick up one variable

2009-01-31 Thread Terion Miller
On Fri, Jan 30, 2009 at 5:44 PM, Shawn McKenzie nos...@mckenzies.netwrote: Terion Miller wrote: Well I changed it because it's not a post since its not coming from a form is this closer? if (!empty($UserName)) { Why are you doing this? Only to see if 0 rows are returned? You can

Re: [PHP] Re: Session won't pick up one variable (SOLVED)

2009-01-31 Thread Terion Miller
thanks got it fixed: if (!empty($_POST['UserName']) !empty($_POST['Password'])) { $UserName = $_POST['UserName']; $Password = $_POST['Password']; } *---was missing a curly bracket..oi syntax* $msg = ''; if (!empty($UserName)) { $sql = SELECT `AdminID`,`UserName` FROM `admin` WHERE

[PHP] Re: Session won't pick up one variable

2009-01-30 Thread Terion Miller
Well I changed it because it's not a post since its not coming from a form is this closer? ?php //start session session_start(); //db connection include include(inc/dbconn_open.php) ; //errors on error_reporting(E_ALL); ini_set('display_errors', '1'); if (isset($_POST['UserName'])) {$UserName =

[PHP] Re: Session won't pick up one variable

2009-01-30 Thread Shawn McKenzie
Terion Miller wrote: Well I changed it because it's not a post since its not coming from a form is this closer? if (!empty($UserName)) { Why are you doing this? Only to see if 0 rows are returned? You can use the results you know. $sql = SELECT `AdminID`,`UserName` FROM `admin`

Re: [PHP] Re: SESSION array problems

2008-10-03 Thread Nathan Rixham
Micah Gersten wrote: You really should get up to speed on PHP 5. Micah Gersten wrote: I was referring to Nathan's examples which you cut out of the post. function save_to_session( ) { global $userids , $first , $last; $_SESSION['user_id'] = $userids; $_SESSION['first_name'] = $first;

[PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread tedd
At 11:10 PM +0100 10/1/08, Nathan Rixham wrote: [tested - works] -snip- ? regards! nathan :) I need to re-address this.. tedd your original code works fine over here; as does the code I sent you, and the code jay submitted first.. do us a favour, copy and paste exactly what I just handed

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Andrew Ballard
On Thu, Oct 2, 2008 at 10:37 AM, tedd [EMAIL PROTECTED] wrote: To all: The code provided by nathan works for me as well. However, the problem is not easily explained, but I can demonstrate it -- try this: http://www.webbytedd.com/zzz/index.php * A complete listing of the code follows the

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Jay Moore
tedd wrote: At 11:10 PM +0100 10/1/08, Nathan Rixham wrote: [tested - works] -snip- ? regards! nathan :) I need to re-address this.. tedd your original code works fine over here; as does the code I sent you, and the code jay submitted first.. do us a favour, copy and paste exactly what I

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Jay Moore
Jay Moore wrote: tedd wrote: At 11:10 PM +0100 10/1/08, Nathan Rixham wrote: [tested - works] -snip- ? regards! nathan :) I need to re-address this.. tedd your original code works fine over here; as does the code I sent you, and the code jay submitted first.. do us a favour, copy and

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Thiago H. Pojda
Much as it pains me to ask this, you don't have REGISTER_GLOBALS on, do you? Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php It must be. I just ran tedd's example in both scenarios. With register_globals = Off it works like a

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Afan Pasalic
Andrew Ballard wrote: On Thu, Oct 2, 2008 at 10:37 AM, tedd [EMAIL PROTECTED] wrote: To all: The code provided by nathan works for me as well. However, the problem is not easily explained, but I can demonstrate it -- try this: http://www.webbytedd.com/zzz/index.php * A complete

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Jim Lucas
tedd wrote: At 11:10 PM +0100 10/1/08, Nathan Rixham wrote: [tested - works] -snip- ? regards! nathan :) I need to re-address this.. tedd your original code works fine over here; as does the code I sent you, and the code jay submitted first.. do us a favour, copy and paste exactly what I

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Jim Lucas
Jim Lucas wrote: tedd wrote: At 11:10 PM +0100 10/1/08, Nathan Rixham wrote: [tested - works] -snip- ? regards! nathan :) I need to re-address this.. tedd your original code works fine over here; as does the code I sent you, and the code jay submitted first.. do us a favour, copy and

Re: [PHP] Re: SESSION array problems UPDATE

2008-10-02 Thread Nathan Rixham
Jim Lucas wrote: Jim Lucas wrote: tedd wrote: At 11:10 PM +0100 10/1/08, Nathan Rixham wrote: [tested - works] -snip- ? regards! nathan :) I need to re-address this.. tedd your original code works fine over here; as does the code I sent you, and the code jay submitted first.. do us a

Re: [PHP] Re: SESSION array problems

2008-10-02 Thread Micah Gersten
Nathan Rixham wrote: tedd wrote: At 3:41 PM -0400 10/1/08, tedd wrote: What about: foreach ($_SESSION['user_id'] as $key = $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo $last, $first; } Jay: Close, it produced: Array,

Re: [PHP] Re: SESSION array problems

2008-10-02 Thread tedd
At 11:14 AM -0500 10/2/08, Micah Gersten wrote: You really should get up to speed on PHP 5. Yeah, I'll be sure to tell me clients that. Sometimes you don't have a choice -- you have to work with what they got. Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Re: SESSION array problems

2008-10-02 Thread Micah Gersten
I was referring to Nathan's examples which you cut out of the post. function save_to_session( ) { global $userids , $first , $last; $_SESSION['user_id'] = $userids; $_SESSION['first_name'] = $first; $_SESSION['last_name']= $last; } Thank you, Micah Gersten onShore Networks Internal

[PHP] Re: SESSION array problems

2008-10-01 Thread Jay Moore
tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] = Array ( [0] = 6156 [1] = 7030 [2] =

[PHP] Re: SESSION array problems

2008-10-01 Thread tedd
What about: foreach ($_SESSION['user_id'] as $key = $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo $last, $first; } Jay: Close, it produced: Array, Array Array, Array Array, Array Cheers, tedd -- ---

[PHP] Re: SESSION array problems

2008-10-01 Thread Shawn McKenzie
tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] = Array ( [0] = 6156 [1] = 7030

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Ashley Sheridan
On Wed, 2008-10-01 at 15:41 -0400, tedd wrote: What about: foreach ($_SESSION['user_id'] as $key = $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo $last, $first; } Jay: Close, it produced: Array, Array Array, Array

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Afan Pasalic
tedd wrote: What about: foreach ($_SESSION['user_id'] as $key = $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo $last, $first; } Jay: Close, it produced: Array, Array Array, Array Array, Array Cheers, tedd then your

[PHP] Re: SESSION array problems

2008-10-01 Thread Shawn McKenzie
Shawn McKenzie wrote: tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] = Array ( [0] = 6156 [1]

[PHP] Re: SESSION array problems

2008-10-01 Thread tedd
At 2:40 PM -0500 10/1/08, Shawn McKenzie wrote: tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] = Array (

[PHP] Re: SESSION array problems

2008-10-01 Thread tedd
At 3:41 PM -0400 10/1/08, tedd wrote: What about: foreach ($_SESSION['user_id'] as $key = $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo $last, $first; } Jay: Close, it produced: Array, Array Array, Array Array, Array

[PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] = Array ( [0] = 6156 [1] = 7030 [2] =

[PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
Nathan Rixham wrote: tedd wrote: Hi gang: Apparently, there's something going on here that I don't understand -- this happens far too often these days. Here's a print_r($_SESSION); of the session arrays I'm using: [user_id] = Array ( [0] = 6156 [1] =

Re: [PHP] Re: SESSION array problems

2008-10-01 Thread Nathan Rixham
tedd wrote: At 3:41 PM -0400 10/1/08, tedd wrote: What about: foreach ($_SESSION['user_id'] as $key = $value) { $last = $_SESSION['last_name'][$key]; $first = $_SESSION['first_name'][$key]; echo $last, $first; } Jay: Close, it produced: Array, Array Array, Array Array, Array

[PHP] Re: Session variables disappear (some of them only)

2008-07-08 Thread karma
You're absolutely right, but the problem is not about how the SID is passed between the scripts, it is more about why some variables are written in the session file while others are not, even when these variables are created within the same script at the same time. If the SID was not correctly

[PHP] Re: Session variables disappear (some of them only)

2008-07-07 Thread karma
Hi, Ted Fabrice, thanks for your answers. Sessions variables are only stored in a local file. The dir permissions are ok, and I've tried to store these files in another dir (/var/tmp/php) just to check. The session id is transmitted via cookies only : session.use_cookies = 1

Re: [PHP] Re: Session variables disappear (some of them only)

2008-07-07 Thread Chris
Then the errors sometimes occur in my apache2/ssl_error_log (undefined index in $_SESSION variable). When I check the sess_12345789... file, some of the variables are missing : $_SESSION[a] and [b] are there, but not $_SESSION[c], even an empty one, it is just gone. That's all I know. Sounds

[PHP] Re: Session variables disappear (some of them only)

2008-07-07 Thread Shawn McKenzie
karma wrote: Hi, Ted Fabrice, thanks for your answers. Sessions variables are only stored in a local file. The dir permissions are ok, and I've tried to store these files in another dir (/var/tmp/php) just to check. The session id is transmitted via cookies only : session.use_cookies =

[PHP] Re: Session variables disappear (some of them only)

2008-07-07 Thread Shawn McKenzie
karma wrote: Hi, Ted Fabrice, thanks for your answers. Sessions variables are only stored in a local file. The dir permissions are ok, and I've tried to store these files in another dir (/var/tmp/php) just to check. The session id is transmitted via cookies only : session.use_cookies =

[PHP] Re: Session variables disappear (some of them only)

2008-07-06 Thread Fabrice VIGNALS
Difficult to help you because there are many method of session : - where do you store the sessions_variables : in local file, db or cookie ? - how you transmit the session id, beetween pages(runtimes) : cookie, $GET link, database ? Did you check the availability of user cookie if you use it

[PHP] Re: Session variables disappear (some of them only)

2008-07-06 Thread tedd
At 1:48 PM +0200 7/6/08, Fabrice VIGNALS wrote: Difficult to help you because there are many method of session : - where do you store the sessions_variables : in local file, db or cookie ? - how you transmit the session id, beetween pages(runtimes) : cookie, $GET link, database ? Did you

RE: [PHP] Re: SESSION Array problem - possibly different PHP versions?

2008-03-11 Thread Angelo Zanetti
-Original Message- From: Al [mailto:[EMAIL PROTECTED] Sent: 10 March 2008 18:23 To: php-general@lists.php.net Subject: [PHP] Re: SESSION Array problem - possibly different PHP versions? Put a print_r($_SESSION) at the top and bottom of your page code so you can see what's happening

[PHP] Re: SESSION Array problem - possibly different PHP versions?

2008-03-10 Thread Al
Put a print_r($_SESSION) at the top and bottom of your page code so you can see what's happening. Also check your code that updates the session assignment by the GET value. It appears your code maybe unset()ing the session assignments. Are you using Cookies? If so, check this code carefully

[PHP] Re: Session destruction problem

2008-02-17 Thread Shawn McKenzie
Adil Drissi wrote: Hi everybody, I need help with sessions. I have a simple authentification relying only on sessions (i don't use cookies). After the user submits his username and password, the script checks if that corresponds to a record in a mysql table. If this is the case

Re: [PHP] Re: Session destruction problem

2008-02-17 Thread Adil Drissi
Well, i'm doing all that. Maybe something is wrong in my code. I'll arrange my code in a way that it will be easy to run and i'll post it. I think like that, you'll see by yourself and you gonna help to fix that for sure. Thank you --- Shawn McKenzie [EMAIL PROTECTED] wrote: Adil Drissi wrote:

Re: [PHP] Re: Session destruction problem

2008-02-17 Thread Shawn McKenzie
Adil Drissi wrote: Well, i'm doing all that. Maybe something is wrong in my code. I'll arrange my code in a way that it will be easy to run and i'll post it. I think like that, you'll see by yourself and you gonna help to fix that for sure. Thank you --- Shawn McKenzie [EMAIL PROTECTED]

[PHP] re: session question

2007-10-30 Thread Nathan Hawks
Nevermind... I don't know what the problem is yet but it's not the folder. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: session cookies enabled?

2007-05-10 Thread Ford, Mike
On 09 May 2007 16:36, [EMAIL PROTECTED] wrote: Ford, Mike writes: You can also set up php.ini and use the built-in sessions with http://php.net/session_start so that PHP will take care of this for you. That is what I was intending to do. How do I find out if whether or

RE: [PHP] Re: session cookies enabled?

2007-05-10 Thread ccspencer
Mike, Thanks for the super clear explanation. This brings up a question. In order to decide whether to use cookies or SID the built-in sessions must be testing to see if the user's browser will accept the session cookies. How do they do that? By sending it out and checking to see

Re: [PHP] Re: session cookies enabled?

2007-05-10 Thread Richard Davey
[EMAIL PROTECTED] wrote: That being the case I can never find out (using the built-in sessions) until the second page request and it will always include the session cookie in the URL. Which means the value of the seesion cookie will be exposed, even if I am using SSL. :( Back to the drawing

Re: [PHP] Re: session cookies enabled?

2007-05-10 Thread Edward Vermillion
On May 10, 2007, at 11:40 AM, Richard Davey wrote: [EMAIL PROTECTED] wrote: That being the case I can never find out (using the built-in sessions) until the second page request and it will always include the session cookie in the URL. Which means the value of the seesion cookie will be

Re: [PHP] Re: session cookies enabled?

2007-05-10 Thread Richard Davey
Edward Vermillion wrote: And the session id is open to being stored in a bookmark or worse, sent to someone else through a cut and paste of the URL. Depending on what information that id controls and how long the sessions are kept around id's in the URL could be a very bad thing indeed.

RE: [PHP] Re: session cookies enabled?

2007-05-09 Thread Ford, Mike
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 08 May 2007 20:57 You can also set up php.ini and use the built-in sessions with http://php.net/session_start so that PHP will take care of this for you. That is what I was intending to do. How do I

[PHP] Re: session cookies enabled?

2007-05-09 Thread ccspencer
Ford, Mike writes: You can also set up php.ini and use the built-in sessions with http://php.net/session_start so that PHP will take care of this for you. That is what I was intending to do. How do I find out if whether or not the session cookie was accepted using the built-in

Re: [PHP] Re: session cookies enabled?

2007-05-09 Thread Richard Lynch
On Wed, May 9, 2007 10:36 am, [EMAIL PROTECTED] wrote: This brings up a question. In order to decide whether to use cookies or SID the built-in sessions must be testing to see if the user's browser will accept the session cookies. How do they do that? The same way you would do it. Actually,

[PHP] Re: session cookies enabled?

2007-05-08 Thread ccspencer
Richard Lynch writes: How does one check to see if the user's browser accepts session cookies? Apparently I should have said cookie and left off the 's' as that is what I had in mind. Send one cookie, see if it comes back, and if it does, tie everything to that cookie. OK. So how do I

[PHP] Re: session cookies enabled?

2007-05-08 Thread itoctopus
setcookie(cookie_name, value); //redirect to another page using header header(location:.$your_url); //check in $your_url for the presence for the cookie if ($_COOKIE[cookie_name] == value){ //cookies are enabled - add your code } else{ //cookies are disabled - add your code } Hope that

Re: [PHP] Re: session cookies enabled?

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 2:56 pm, [EMAIL PROTECTED] wrote: Richard Lynch writes: Send one cookie, see if it comes back, and if it does, tie everything to that cookie. OK. So how do I see if it comes back? if (isset($_COOKIE['foo'])){ //cookie came back } else{ //cookie did NOT come back }

Re: [PHP] Re: session cookies enabled?

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 5:50 pm, itoctopus wrote: setcookie(cookie_name, value); //redirect to another page using header header(location:.$your_url); This will fail on some legacy browsers, if you need legacy browser support. In *MOST* architectures, your visitor can be given the cookie on a page

[PHP] Re: session in forum

2007-04-08 Thread itoctopus
http://www.sitepoint.com/article/users-php-sessions-mysql -- itoctopus - http://www.itoctopus.com uni uni [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] im trying to make a forum for my school assignment, its done and work well, but i want to make session where it is readonly for

[PHP] Re: session/login issue

2007-03-13 Thread Mark
Gunter Sammet wrote: Hi all: I inherited an application using PHP 5.1.4 with MySQL 4.1.20, Apache/2.0.46 (Red Hat) on a VPS server with Plesk 7.5. The authentication used to work just fine till yesterday. Now it doesn't authenticate anymore. My debugging so far hasn't revelaed much. It seems

[PHP] Re: session question

2007-03-05 Thread Fahad Pervaiz
ORIGINAL # I have an index.php page which does not user session_start(); command. However in this index.php page, there are some $_SESSION['...']; variables stored. How is it possible that $_SESSION['...']; works even if no session has been created before ? moreover, if i use a print

[PHP] Re: Session Problem

2007-02-16 Thread datsclark
Also, make sure the session's are being saved properly. I had this same problem when PHP wasn't able to write to the temp directory. You can set up your own sessions dir with session.save_path in php.ini LoneWolf [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am having a problem

[PHP] Re: Session issues

2006-08-18 Thread Al
Dave Goodchild wrote: Hi all, I am currently writing a web application that has a 3-stage form process as part of its functionality. The values passed in are placed in the session array after validation and once the user has completed and supplied all required values the relevant session

Re: [PHP] Re: Session issues

2006-08-18 Thread Richard Lynch
On Thu, August 17, 2006 12:56 pm, Dave Goodchild wrote: How does the user go back one page? If it by using the browser's back-button, the php script has no way of knowing it. Yes, but the session variables have already been set, and are configured to display in the form fields. Ah, but

Re: [PHP] Re: Session issues

2006-08-18 Thread Dave Goodchild
Don't be sorry, that's not what I meant. The fields are completed by the user, they submit and the cleaned and validated values are put into the session. So when they go back their entered values are displayed. I made sure of it by making sure these pages are never cached. That issue is

[PHP] Re: Session issues

2006-08-17 Thread Al
Dave Goodchild wrote: Dave Goodchild wrote: Hi all, I am currently writing a web application that has a 3-stage form process as part of its functionality. The values passed in are placed in the session array after validation and once the user has completed and supplied all required values the

Re: [PHP] Re: Session issues

2006-08-17 Thread Dave Goodchild
How does the user go back one page? If it by using the browser's back-button, the php script has no way of knowing it. Yes, but the session variables have already been set, and are configured to display in the form fields. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: Session issues

2006-08-17 Thread Dave Goodchild
On 17/08/06, John Nichel [EMAIL PROTECTED] wrote: Dave Goodchild wrote: How does the user go back one page? If it by using the browser's back-button, the php script has no way of knowing it. Yes, but the session variables have already been set, and are configured to display in the

Re: [PHP] Re: Session issues

2006-08-17 Thread John Nichel
Dave Goodchild wrote: How does the user go back one page? If it by using the browser's back-button, the php script has no way of knowing it. Yes, but the session variables have already been set, and are configured to display in the form fields. All the session variables in the world

Re: [PHP] Re: Session issues

2006-08-17 Thread John Nichel
Dave Goodchild wrote: On 17/08/06, John Nichel [EMAIL PROTECTED] wrote: Dave Goodchild wrote: How does the user go back one page? If it by using the browser's back-button, the php script has no way of knowing it. Yes, but the session variables have already been set, and are

Re: [PHP] Re: Session issues

2006-08-17 Thread Dave Goodchild
Trust me, there is far too much code to include. The problem is simple. The app contains a 3-page form cycle that reloads itself, progressing from stage 1-3 and populating the session array as values are validated and cleaned. When the process is complete, the values held in the session array are

Re: [PHP] Re: Session issues

2006-08-17 Thread Robert Cummings
On Thu, 2006-08-17 at 19:19 +0100, Dave Goodchild wrote: Trust me, there is far too much code to include. The problem is simple. The app contains a 3-page form cycle that reloads itself, progressing from stage 1-3 and populating the session array as values are validated and cleaned. When the

[PHP] Re: session problem

2006-06-21 Thread Barry
weetat schrieb: Hi all, I have 2 php page , whenever i click the submit in 1st page , the $_SESSION['LIST_OF_DATA'] display nothing in the 2nd page. If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it displayed the data correctly. Anybody have any ideas why php session

[PHP] Re: session problem

2006-06-21 Thread weetat
yes i am Thank for you help Barry wrote: weetat schrieb: Hi all, I have 2 php page , whenever i click the submit in 1st page , the $_SESSION['LIST_OF_DATA'] display nothing in the 2nd page. If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it displayed the data correctly.

[PHP] Re: session problem

2006-06-21 Thread Barry
weetat schrieb: Let me take a guess: Your FORM action is action=http:// Barry yes i am Thank for you help Ookay ... no problem ... probably . Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: Session variables on Windows

2006-06-06 Thread The Panister
Well Do you have folder called tmp in your root? ThePanister! Tom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does some well-known problem exist with the session variables in Windows servers? Because in a system that I have running on a Windows server, sometimes the

Re: [PHP] Re: Session contamination?

2006-04-21 Thread Ben Liu
Hi Chuck, Glad this discussion has been of use to you. I can't help much with where your /tmp directory might be. if you echo session_save_path() it should tell you where your session cookies are being saved to on your server. I have read recommendations that you set a different path for

Re: [PHP] Re: Session contamination?

2006-04-21 Thread Richard Lynch
On Thu, April 20, 2006 11:05 pm, Chuck Anderson wrote: As to session save path, when I run phpinfo (at my remote Linux server) it tells me that it is set to no value. This means it would default to /tmp. Where is this tmp directory? I have looked at the tmp directory that is one level above

[PHP] Re: session

2006-04-20 Thread João Cândido de Souza Neto
João Cândido de Souza Neto wrote: Hi everyone. I hope someone here can help me. When i start a session in a php page, this session receives an unique id. If you think about this, if i call a session_destroy() in any page and in the other paga call a session_start() again, it'll receive

[PHP] Re: Session contamination?

2006-04-20 Thread Chuck Anderson
This has been a very interesting discussion, as I have had the same problem, but never thought much about the fact that I could do anything about it. As to session save path, when I run phpinfo (at my remote Linux server) it tells me that it is set to no value. This means it would default to

Re: [PHP] Re: session vars

2006-03-23 Thread John Wells
U, is your top.php code being printed AT ALL? Because in the code you gave us, you're attempting to include topo.php. HTH, John On 3/21/06, João Cândido de Souza Neto [EMAIL PROTECTED] wrote: tedd wrote: Hi: I hate this. Ok guy, don't fight with me. hehehe Follow's all code of

[PHP] Re: session vars

2006-03-21 Thread João Cândido de Souza Neto
João Cândido de Souza Neto wrote: 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?

RE: [PHP] Re: session vars

2006-03-21 Thread Shaunak Kashyap
, March 21, 2006 9:38 AM To: php-general@lists.php.net Subject: [PHP] Re: session vars João Cândido de Souza Neto wrote: 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

RE: [PHP] Re: session vars

2006-03-21 Thread João Cândido de Souza Neto
Neto [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 9:38 AM To: php-general@lists.php.net Subject: [PHP] Re: session vars João Cândido de Souza Neto wrote: 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

Re: [PHP] Re: session vars

2006-03-21 Thread Chris Shiflett
João Cândido de Souza Neto wrote: I tried it yet, if a put a echo $_SESSION[root] before or after the include, it works fine, it doesn't work in the file top.php. Show us the code. What you're describing should not be possible. Chris -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: session vars

2006-03-21 Thread João Cândido de Souza Neto
Chris Shiflett wrote: João Cândido de Souza Neto wrote: I tried it yet, if a put a echo $_SESSION[root] before or after the include, it works fine, it doesn't work in the file top.php. Show us the code. What you're describing should not be possible. Chris Here's the original message:

Re: [PHP] Re: session vars

2006-03-21 Thread Chris Shiflett
João Cândido de Souza Neto wrote: Show us the code. ... Some codes ... That doesn't count. :-) You're describing a situation that I seriously doubt is reflected in your code. Reduce the problem to the simplest example you possibly can, and then show us the code. Chris -- PHP General

Re: [PHP] Re: session vars

2006-03-21 Thread João Cândido de Souza Neto
Chris Shiflett wrote: João Cândido de Souza Neto wrote: Show us the code. ... Some codes ... That doesn't count. :-) You're describing a situation that I seriously doubt is reflected in your code. Reduce the problem to the simplest example you possibly can, and then show us the

RE: [PHP] Re: session vars

2006-03-21 Thread Shaunak Kashyap
-Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 11:26 AM To: php-general@lists.php.net Subject: Re: [PHP] Re: session vars This code's exactly the one that produce the error. That is, in the line: a href=? echo

RE: [PHP] Re: session vars

2006-03-21 Thread João Cândido de Souza Neto
Shaunak Kashyap wrote: -Original Message- From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 11:26 AM To: php-general@lists.php.net Subject: Re: [PHP] Re: session vars This code's exactly the one that produce the error. That is, in the line

RE: [PHP] Re: session vars

2006-03-21 Thread tedd
Hi: I hate this. Ok guy, don't fight with me. hehehe Follow's all code of files. Yeah ! Where's rodape.php ? If we're going to spend our time looking at your code, shouldn't you spend the time to provide all of it? tedd --

  1   2   3   4   >