[PHP] Re: PHP session variables

2012-08-08 Thread Jim Giner
On 8/8/2012 11:24 AM, Ansry User 01 wrote: I am setting the _SESSION variables in one of my file, but whenever I leave the php page session variables are not accessible. Not sure what I need to do additionally other then defining _SESSION[]. Any pointer. You must make it a habit to start

Re: [PHP] session variables in tmp

2010-06-08 Thread Gerardo Benitez
Hi Stephen, you can try setting the session path using session_save_path http://www.php.net/manual/en/function.session-save-path.php. Gerardo www.webseficientes.com.ar On Sat, Jun 5, 2010 at 2:18 AM, Stephen Sunderlin stephen.sunder...@verizon.net wrote: trying out a CentOS release 5.2

Re: [PHP] session variables in tmp

2010-06-08 Thread Stephen Sunderlin
Thanks Gerardo. I send a large dump.sql file to my /tmp dir and filled up the remaining space so PHP was not able to write any more session variable. Took me a little while to figure that one out. Thanks for your response. On Tue, 08 Jun 2010 12:00:23 -0400, Gerardo Benitez

Re: [PHP] session variables in tmp

2010-06-08 Thread Gerardo Benitez
Ok, that usually happens. Gerardo www.webseficientes.com.ar On Tue, Jun 8, 2010 at 1:48 PM, Stephen Sunderlin stephen.sunder...@verizon.net wrote: Thanks Gerardo. I send a large dump.sql file to my /tmp dir and filled up the remaining space so PHP was not able to write any more session

Re: [PHP] session variables and SVG documents

2010-02-03 Thread Aurelie REYMUND
Hello, unfortunately, it does not suite my needs. The image must be clickable. The application I'm developping reads data from a database and display the information graphically. The user must be able to click on some elements of the picture, and I have to store the information the user clicked

Re: [PHP] session variables and SVG documents

2010-02-03 Thread Ashley Sheridan
On Wed, 2010-02-03 at 10:49 +0100, Aurelie REYMUND wrote: Hello, unfortunately, it does not suite my needs. The image must be clickable. The application I'm developping reads data from a database and display the information graphically. The user must be able to click on some elements of

Re: [PHP] session variables and SVG documents

2010-02-03 Thread tedd
At 10:49 AM +0100 2/3/10, Aurelie REYMUND wrote: Hello, unfortunately, it does not suite my needs. The image must be clickable. The application I'm developping reads data from a database and display the information graphically. The user must be able to click on some elements of the picture, and

Re: [PHP] session variables and SVG documents

2010-02-03 Thread Adam Richardson
On Wed, Feb 3, 2010 at 8:20 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Wed, 2010-02-03 at 10:49 +0100, Aurelie REYMUND wrote: Hello, unfortunately, it does not suite my needs. The image must be clickable. The application I'm developping reads data from a database and

Re: [PHP] session variables and SVG documents

2010-02-01 Thread Ashley Sheridan
On Mon, 2010-02-01 at 11:37 +0100, Aurelie REYMUND wrote: Hello, I have the following problem with the Adobe SVG viewer: I try to generate a SVG document using PHP. the following code is working well under Firefox, as well as IE with ASV: ?php header(Content-type: image/svg+xml);

Re: [PHP] session variables and SVG documents

2010-02-01 Thread Ray Solomon
From: Aurelie REYMUND aurely...@gmail.com Sent: Monday, February 01, 2010 3:37 AM To: php-general@lists.php.net Subject: [PHP] session variables and SVG documents Hello, I have the following problem with the Adobe SVG viewer: I try to generate a SVG document using PHP. the following code is

RE: [PHP] SESSION VARIABLES ACROSS DIFFERENT WINDOWS/TABS

2009-08-21 Thread Leon du Plessis
; 'Floyd Resler' Cc: a...@dotcontent.net; php-general@lists.php.net Subject: RE: [PHP] SESSION VARIABLES ACROSS DIFFERENT WINDOWS/TABS Leon, This is really just a function of the browser. When a session cookie is created, if the browser is setup for a single instance, that's the session cookie it'll

Re: [PHP] SESSION VARIABLES ACROSS DIFFERENT WINDOWS/TABS

2009-08-20 Thread Ashley Sheridan
On Thu, 2009-08-20 at 15:16 +0200, Leon du Plessis wrote: It is just strange that I have this condition now...maybe I missed it a year ago ? Having a different session start up for each window for tab would be a major pain. Why? People must please try and understand what I mean by

RE: [PHP] SESSION VARIABLES ACROSS DIFFERENT WINDOWS/TABS

2009-08-20 Thread Jaime Bozza
Leon, This is really just a function of the browser. When a session cookie is created, if the browser is setup for a single instance, that's the session cookie it'll use for *any* request to that domain. This functions differently depending on what browser you're using. For example:

Re: [PHP] session variables - help

2009-08-14 Thread Ralph Deffke
I'm realy sorry for u, but the reason for no answers is ur concept. may be some rules will help u and I recommend u to think to spend the time to rewrite the whole code. Im shure u will solve the problem then: first dont use the global arrays directly. pick the values u need and put them in

Re: [PHP] session variables - help

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote: user often leave forms open for hours and then submit them These users should be taken out and beaten over the head with their keyboards! Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] session variables - help

2009-08-14 Thread Ralph Deffke
well thanks good they are far away then, but the problem is ur client, i didnt find anybody giving me the permission to beat his customers Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1250236989.2344.10.ca...@localhost... On Fri, 2009-08-14 at 09:55 +0200, Ralph Deffke wrote:

Re: [PHP] session variables - help

2009-08-14 Thread Ashley Sheridan
On Fri, 2009-08-14 at 10:05 +0200, Ralph Deffke wrote: well thanks good they are far away then, but the problem is ur client, i didnt find anybody giving me the permission to beat his customers Ashley Sheridan a...@ashleysheridan.co.uk wrote in message

RE: [PHP] session variables - help

2009-08-14 Thread Ford, Mike
-Original Message- From: Allen McCabe [mailto:allenmcc...@gmail.com] Sent: 14 August 2009 06:58 My ai with using unset($var) in update_order.php is to set the SESSION variable for an item to ' ' (empty) so that it would not show up on the order summary (because my

RE: [PHP] session variables - help

2009-08-14 Thread Ford, Mike
-Original Message- From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] Sent: 14 August 2009 11:45 Now, here is the update_order.php code in entirety: [code] ?php session_start(); foreach ($_SESSION as $var = $val) { if ($val == 0) { unset($_SESSION[$var]); } elseif

RE: [PHP] session variables - help

2009-08-14 Thread Ford, Mike
-Original Message- From: Allen McCabe [mailto:allenmcc...@gmail.com] Sent: 14 August 2009 06:58 Here is some more complete code: [code = order_process.php] ?php session_start(); // POST ALL $_POST VALUES, CREATE AS VARIABLES IN SESSION foreach($_POST as $k=$v) {

Re: [PHP] session variables - help

2009-08-14 Thread Allen McCabe
Thank you all for your responses. Mike. I like the ii option better, mostly because I already have most of that in place (ie. order posts to process, and process has editable fields and hidden fields with the remaining complimentary values). Martin suggested I use the following code for my

Re: [PHP] session variables - help

2009-08-14 Thread Martin Scotta
On Fri, Aug 14, 2009 at 12:25 PM, Allen McCabe allenmcc...@gmail.comwrote: Thank you all for your responses. Mike. I like the ii option better, mostly because I already have most of that in place (ie. order posts to process, and process has editable fields and hidden fields with the

Re: [PHP] session variables - help

2009-08-14 Thread Ben Dunlap
Thanks all for your patience! I will work on this today and write back with any further questions I can't figure out on my own. And if anyone has any advice I will be checking my email regularly. If you've already tried this with no luck, please ignore -- but you might speed up the whole

Re: [PHP] session variables - help RESOLVED

2009-08-14 Thread Allen McCabe
Thanks everyone for your help, I finally got it working. For those that were curious, my writeResultRow() function was not naming the input fields properly, so the SESSION variables could not be updated properly. I had to add an array item for each show, an id, then call the id to name the inputs

Re: [PHP] session variables - help

2009-08-13 Thread Ben Dunlap
I have the following code for order_update.php: [code] session_start(); extract($_POST); foreach ($_POST as $var = $val) { if ($val 0) { $_SESSION[$var] = $val; } else { unset($var); } header(Location: order_process.php); } [/code] This is not working, however, and it

Re: [PHP] session variables - help

2009-08-13 Thread Allen McCabe
Ben, First of all, I thank you for your time and help. My ai with using unset($var) in update_order.php is to set the SESSION variable for an item to ' ' (empty) so that it would not show up on the order summary (because my writeResultRow() function will only write a row if that variable is

Re: [PHP] Session variables

2009-02-07 Thread Stuart
2009/2/7 Paul M Foster pa...@quillandmouse.com: 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).

Re: [PHP] Session variables

2009-02-07 Thread German Geek
Yeah i guess the cookie doesn't need to be stored on the server since it's in the header anyway. Thanks for clearing that up. Tim-Hinnerk Heuer http://www.ihostnz.com Charles M. Schulz - I love mankind; it's people I can't stand. 2009/2/7 Stuart stut...@gmail.com 2009/2/7 Paul M Foster

Re: [PHP] Session variables

2009-02-06 Thread Phpster
A Session is stored on the user browser in a session ( in memory cookie) and on the server as a file. The session mgmt tools will read the file as needed. Bastien Sent from my iPod On Feb 7, 2009, at 1:58, Paul M Foster pa...@quillandmouse.com wrote: I'm not too clear on HTTP headers,

Re: [PHP] Session variables

2009-02-06 Thread German Geek
The session data is stored on the server. In the user's browser, only a session cookie is stored, usually a random session id string. I could never retrieve the session variables with any browser tools, always only with PHP by echoing them out or something. Also, a cookie is simply a text file

Re: [PHP] SESSION variables

2008-10-11 Thread Daniel Brown
On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott [EMAIL PROTECTED] wrote: I am programming a blog. index.php sets up the layout for the web page. This includes the heading, left hand and bottom menus. The content is loaded by the command: include($filename); the $_SESSION variables aren't

Re: [PHP] SESSION variables

2008-10-11 Thread Ron Piggott
This is one of the first commands given. I am using modrewrites to call the blog entries. blog.php is responsible for displaying both the table of contents and the blog entries. When the table of contents is called (http://www.rons-home.net/page/blog/ ) the session variables are present.

Re: [PHP] SESSION variables

2008-10-11 Thread Ron Piggott
I did some more testing. The URL is the problem. Logins are from On Sat, 2008-10-11 at 19:59 -0400, Daniel Brown wrote: On Sat, Oct 11, 2008 at 7:49 PM, Ron Piggott [EMAIL PROTECTED] wrote: I am programming a blog. index.php sets up the layout for the web page. This includes the

Re: [PHP] SESSION variables

2008-10-11 Thread Ron Piggott
Oops Logins are from http://www.rons-home.net/page/login-greeting/ Blog postings are from http://www.rons-home.net/blog/28/ with the word 'page' gone the session variable doesn't acknowledge the login. Ron On Sat, 2008-10-11 at 21:12 -0400, Ron Piggott wrote: I did some more testing. The

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread Brad Bonkoski
Perhaps you should load up your initial form and then use the view source option in your browser as this will probably give you insight into your problems... -Brad Beauford wrote: Hi, I have a form in which a drop down field is populated from a MySQL database. I am also using sessions. The

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread John Nichel
Beauford wrote: Hi, I have a form in which a drop down field is populated from a MySQL database. I am also using sessions. The problem is this. After I submit the form the session variable only shows the part of the input before the space. Example: if I choose Niagra Falls from the drop down

RE: [PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Thanks - Done that though. It shows the way it should be. Example: option value=Niagara FallsNiagara Falls/option -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 2:28 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread Brad Bonkoski
FallsNiagra Falls/option (View source is a powerful tool!) -Brad -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 2:28 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session variables and words with spaces Perhaps you should load up your

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread cajbecu
be. Example: option value=Niagara FallsNiagara Falls/option -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 2:28 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session variables and words with spaces Perhaps you should load up your

RE: [PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Not sure why I would get a parse error, but that did correct the problem. I just completely missed the single quote. I never even clue'd in when I looked at the source of the page. Sometimes another pair of eyes does the trick. Maybe it's time for a break. Thanks I'm surprised you're not

RE: [PHP] Session variables and words with spaces

2006-05-31 Thread Beauford
Yep, I see that now. I really need to take a break - been at this way to long. Thanks to all. -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED] Sent: May 31, 2006 3:02 PM To: Beauford Cc: php-general@lists.php.net Subject: Re: [PHP] Session variables and words

[PHP] Re: php session variables limited to 1 character -- please help

2005-10-27 Thread Oliver Grätz
Zac Smith schrieb: http://www.triptrivia.com/step2-debug.php?State=abc 404 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Peter Brodersen
On Mon, 6 Sep 2004 13:33:02 +0800, in php.general [EMAIL PROTECTED] (Jason Wong) wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're performing SELECT query and not an INSERT query. How did you come

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Marek Kilimajer
Dre wrote: and by the way .. I'm using MS Windows XP Pro. which I do believe that it has some hand in the problem :) Like you did not change session.save_path setting in php.ini from /tmp to whatever it is supposed to be on windows. Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Chris Shiflett
--- Jason Wong [EMAIL PROTECTED] wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're performing SELECT query and not an INSERT query. That's not true, since he's using user data in the SQL statement.

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Dre
no I did this a long time ago (I did have this problem before :o) ) Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: and by the way .. I'm using MS Windows XP Pro. which I do believe that it has some hand in the problem :) Like you did not change

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Marek Kilimajer
Dre wrote: no I did this a long time ago (I did have this problem before :o) ) Try echo $_REQUEST[session_name()]; in members/main.php. It should print the session id. Then there should be a session file sess_[session id]. Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

Re: [PHP] Session variables does not get sent

2004-09-06 Thread Jason Wong
On Monday 06 September 2004 14:08, Peter Brodersen wrote: On Mon, 6 Sep 2004 13:33:02 +0800, in php.general [EMAIL PROTECTED] (Jason Wong) wrote: $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
Dre wrote: I don't know why but session variables does not get posted .. is there any thing in the php.ini that I should configure as I can't find any thing wrong in the code I'm using !! Session variables are not posted, they are kept on the server. Only the session id is sent as a cookie, get

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: I don't know why but session variables does not

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Marek Kilimajer
Dre wrote: I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! That means you are loosing your session. Is the session id sent? Is the session file (usualy in /tmp) created? Marek Kilimajer

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! Are you starting the session on every page? How are you sending the session id? -- By-Tor.com It's all about the Rush

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
this is the username/password validation script which receives the user name and password from a regular form and they are sent correctly logme_in.php //== == ?php session_start(); $username =

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
and by the way .. I'm using MS Windows XP Pro. which I do believe that it has some hand in the problem :) Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: snip if((empty($_POST['user_name'])) || (empty($_POST['password']))) { header('Location: index.php'); include(login_form); exit(); } That include is useless, as you're forwarding to another document right before it. else{ include(db.php); $sql = SELECT * FROM

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Dre
yes I'm sure John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre wrote: snip if((empty($_POST['user_name'])) || (empty($_POST['password']))) { header('Location: index.php'); include(login_form); exit(); } That include is useless, as you're

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: yes I'm sure Won't hurt to echo it out. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session variables does not get sent

2004-09-05 Thread Jason Wong
Please do not top post. On Monday 06 September 2004 06:53, Dre wrote: As well as what everybody else has said ... $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); addslashes() is not needed as you're performing SELECT query and not an

Re: [PHP] Session Variables ~ Best Practices

2004-07-14 Thread Harlequin
thanks Jay. -- - Michael Mason Arras People www.arraspeople.co.uk - Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I am also wondering if I need to declare all my variables one after the other or can I

RE: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Jay Blanchard
[snip] I am also wondering if I need to declare all my variables one after the other or can I simply declare variables that I will be using immediately upon submission. [/snip] Since PHP is not strongly typed (like C or C++) you need not declare any variables. There are some caveats (see

Re: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Michal Migurski
I presume I am right in assuming that I can declare variables anywhere I like providing I have started a session on the page but I cannot actually use those variables until a post or some similar action has been performed by the user. No, you can use them right away - they are stored

Re: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Justin Patrin
On Tue, 13 Jul 2004 17:52:44 +0100, Harlequin [EMAIL PROTECTED] wrote: I'm right in the middle of developing some pages that will require session cookies. Now I have a few questions and hope I don't bore you too much... I presume I am right in assuming that I can declare variables anywhere I

Re: [PHP] session variables

2004-06-01 Thread John Nichel
Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Did you start the session before you set $_SESSION['new_name']? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General

Re: [PHP] session variables

2004-06-01 Thread John W. Holmes
Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Yes, it is. Providing you have sessions configured correctly and use session_start(). -- ---John Holmes... Amazon Wishlist:

Re: [PHP] session variables

2004-06-01 Thread Bob Lockie
On 06/01/04 22:12 John Nichel spoke: Bob Lockie wrote: $_SESSION['new_name'] = $_REQUEST['new_name']; Is not global. I printed out the value locally but it is not made into a session variable. Did you start the session before you set $_SESSION['new_name']? That was my problem. I reorganized and

Re: [PHP] Session variables not recognized?

2004-05-25 Thread Daniel Clark
Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION What's up with that??? - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Session variables not recognized?

2004-05-25 Thread Brian Dunning
This is 4.3.2 and sessions are enabled. Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Session variables not recognized?

2004-05-25 Thread John Nichel
Brian Dunning wrote: This is 4.3.2 and sessions are enabled. Session handling was added in PHP 4.0. The first line of my file is session_start(); but whenever I try to set or reference $_SESSION['anything'] I get: Undefined variable: _SESSION - Brian Post some code. -- John C. Nichel

Re: [PHP] Session variables not working

2004-05-15 Thread Andrew Wood
If a page accesses the session variables does it need to explicity reset them as well because it would appear that an intermediate PHP script which also reads the 2 variables is destroying the session for no apparent reason On 14 May 2004, at 22:11, Brad Pauly wrote: On Fri, 2004-05-14 at

Re: [PHP] Session variables not working

2004-05-14 Thread John W. Holmes
- Original Message - From: Andrew Wood [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 14, 2004 4:48 PM Subject: [PHP] Session variables not working I'm trying to set the following two vars on one page then read their values on another like this: [snip] But on page2.php

Re: [PHP] Session variables not working

2004-05-14 Thread Andrew Wood
Using a cookie which is shown in my browser as PHPSESSID Yes they're on the same domain but no there's nothing being passed accross the URL. Should there be? AW On 14 May 2004, at 21:59, John W. Holmes wrote: - Original Message - From: Andrew Wood [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] Session variables not working

2004-05-14 Thread John W. Holmes
From: Andrew Wood [EMAIL PROTECTED] Using a cookie which is shown in my browser as PHPSESSID Yes they're on the same domain but no there's nothing being passed accross the URL. Should there be? No, not normally. How are you getting from page 1 to page 2? page1.php... ob_start();

Re: [PHP] Session variables not working

2004-05-14 Thread Brad Pauly
On Fri, 2004-05-14 at 14:48, Andrew Wood wrote: I'm trying to set the following two vars on one page then read their values on another like this: page1.php... ob_start(); session_start(); $_SESSION['member_id'] = $member_id; $_SESSION['password'] = $password; ob_end_flush();

Re: [PHP] Session variables not working

2004-05-14 Thread Andrew Wood
Either typing the URL directly or by using a hyperlink. On 14 May 2004, at 22:09, John W. Holmes wrote: From: Andrew Wood [EMAIL PROTECTED] Using a cookie which is shown in my browser as PHPSESSID Yes they're on the same domain but no there's nothing being passed accross the URL. Should there

RE: [PHP] session variables

2004-04-20 Thread Vincent DUPONT
I would do script 1 : $_SESSION['test'] = hello world; and in script2 : print($_SESSION['test']); vincent -Original Message- From: Charles Collins [mailto:[EMAIL PROTECTED] Sent: mardi 20 avril 2004 17:44 To: [EMAIL PROTECTED] Subject: [PHP] session variables I have two test files

Re: [PHP] session variables

2004-04-20 Thread Charles Collins
Dear Vincent, Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get the damn thing working. Regards, Charlie. Vincent Dupont [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I would do script 1 : $_SESSION['test'] = hello world; and in script2 :

Re: [PHP] session variables

2004-04-20 Thread Daniel Clark
hum. Try $_SESSION['test'] on page 2. I have two test files running on a server, which is giving me a headache, due to the fact the session variables are not been maintained across the two pages. The server is running ... PHP Version = 4.0.5 register_globals = ON Session Support =

Re: [PHP] session variables

2004-04-20 Thread Daniel Clark
Does page1 call page2? Or do you open another browser window and open page2? My understanding is some browsers to NOT transfer the same session info to another borwser window. Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get the damn thing working. Regards,

Re: [PHP] session variables

2004-04-20 Thread Curt Zirzow
* Thus wrote Charles Collins ([EMAIL PROTECTED]): I have two test files running on a server, which is giving me a headache, due to the fact the session variables are not been maintained across the two pages. The server is running ... PHP Version = 4.0.5 register_globals = ON Session

Re: [PHP] session variables

2004-04-20 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): This looks like output from 'php -i'. The php module *can* have a different config, check these values from phpinfo() in a webpage in the same directory as your scripts with I fired my proofreader so I have to do this manually now :) s/ with/.

Re: [PHP] Session variables as array

2004-03-24 Thread John W. Holmes
Joseph Ross Lee wrote: Hello... Is there any example that I can look at that does a session variable as an array? thanks session_start(); $_SESSION['somekey'] = 'somevalue'; $_SESSION['someotherkey'] = array('one','two','three','four'); $_SESSION['yetanother'] =

RE: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 02:45, Ronald Ramos wrote: $_SESSION['username']; $_SESSION['password']; Close, try this instead: $_SESSION['username'] = $username; $_SESSION['password'] = $password; I edited page3.php but it still shows me nothing. It looks great, now you just need to clear up your

RE: [PHP] SESSION VARIABLES

2004-02-10 Thread Adam Bregenzer
On Tue, 2004-02-10 at 03:13, Ronald Ramos wrote: It Worked. Thanks Man! So I can use this to any other page? Awesome! You have access to the $_SESSION variables on any php page on the same server. Just make sure you call session_start() before you access the $_SESSION array. Let's say I

Re: [PHP] SESSION VARIABLES

2004-02-09 Thread Adam Bregenzer
On Tue, 2004-02-10 at 00:43, Ronald Ramos wrote: Hi All, I've created 3 sample scripts, pls see below. My problem is that page3.php can't display the value $username and $password Or is it because it the variables were not importe to that page, that's why $username and $password has no

Re: [PHP] session variables

2004-01-22 Thread Matt Matijevich
snip If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? /snip Yes, look at the session.use_trans_sid variable. http://www.php.net/session If cookies are disabled, php will pass the session id as a ur variable or

Re: [PHP] session variables

2004-01-22 Thread John Nichel
Diana Castillo wrote: If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? -- -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Fax : 00-34-915228673 email:

Re: [PHP] session variables

2004-01-22 Thread Chris Shiflett
--- Diana Castillo [EMAIL PROTECTED] wrote: If you store session variables , but the user has session cookies disabled, is there any way to recuperate those session variables? Cookies come in two types: session cookies and persistent cookies. Session cookies have no set expiration date, so they

RE: [PHP] session variables scope problem. HELP!

2003-11-13 Thread Johnson, Kirk
It seems that once a session is started and variables set, I can access the variables on the page on which they are set, but on subsequent pages via link or Header redirect the session variables are not set and cannot be accesses. Be sure you have session_start() at the top of *all*

[PHP] SOLVED RE: [PHP] SESSION variables losing data on WinXP?

2003-09-19 Thread Jami
In case anyone else runs into this problem, the way I solved it was by reinstalling php with the windows installer from php.net. I'm not exactly sure what the problem was, but reinstalling it this way solved the problem. Hope this helps someone else. Jami Moore LightSpark Digital Designs [EMAIL

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Larry_Li
I believe all pages in your site are protected by session variables. Try to login first, then go where you want to go. Or try to remark codes which check your login status. Jami [EMAIL PROTECTED] 09/17/2003 03:52 PM Please respond to listmail To: PHP General [EMAIL

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Larry_Li
Did you open register_globals = On in php.ini? Larry Li/CNTR/APPLIED [EMAIL PROTECTED] 09/17/2003 04:04 PM To: [EMAIL PROTECTED] cc: PHP General [EMAIL PROTECTED] Subject:Re: [PHP] SESSION variables losing data on WinXP? I believe all pages

RE: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Jami
Knew I forgot to mention something. No, register_globals are off. Using $_SESSION[] variables. I am logging in first. I log in fine, its when I try to go to another page via a link on the entry page that I get booted back to the login page. My scripts work fine on a Unix server, which is what I

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Scott Fletcher
Speaking of your problem, you're using the header() function to exit the webpage to the login page. So, it all come down to the either one of these two or both of these two if(!isset($uname)) { if (mysql_num_rows($result) == 0) { Upon closer inspection on the script, it look like either

[PHP] STILL NOT SOLVED RE: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Jami
Scott, thanks for the suggestion, but my php.ini is the same as yours. And I still have the problem. Any idea why $_SESSION[] variables would loose data on my server type and not on another? Jami Moore LightSpark Digital Designs [EMAIL PROTECTED] http://www.lightsparkdigital.com/ -Original

Re: [PHP] Session Variables in a Class

2003-09-10 Thread micro brew
Thanks Curt, You were absolutely correct. Removing the session_register() lines before the $_SESSION[] fixed the problem. By mixing the two before, it actually would register the variable so I could later test for the registered session variable but it did not retain the value I assigned it.

Re: [PHP] Session Variables in a Class

2003-09-10 Thread CPT John W. Holmes
From: micro brew [EMAIL PROTECTED] Here's my class. I start the session in the constructor and in later methods attempt to register session variables. You can see I've tried a couple different methods but none of them maintain the session variable values. Any suggestions? Is

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Marco Schuler
Am Die, 2003-09-09 um 10.19 schrieb micro brew: Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the

Re: [PHP] Session Variables in a Class

2003-09-09 Thread CPT John W. Holmes
From: micro brew [EMAIL PROTECTED] I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session variable directly

Re: [PHP] Session Variables in a Class

2003-09-09 Thread micro brew
Here's my class. I start the session in the constructor and in later methods attempt to register session variables. You can see I've tried a couple different methods but none of them maintain the session variable values. Any suggestions? Mike ?php class login { //This variable tells the

Re: [PHP] Session Variables in a Class

2003-09-09 Thread Curt Zirzow
* Thus wrote micro brew ([EMAIL PROTECTED]): Hi everyone, I've been experimenting with sessions. I can make them work just fine in a normal PHP page. But when I create a class and try to define a session variable within a method in the class it won't work. I've tried setting the session

  1   2   >