Re: [PHP] session variable problem

2011-03-28 Thread markb
On 3/25/2011 3:55 PM, Peter Lind wrote: More info (including some code) would be needed to get to the bottom of this, I'd say. Hard to diagnose what's happening otherwise. Regards Peter So I guess there is no list of things to check for sessions? I'll try to pair down the code to something

Re: [PHP] session variable problem

2011-03-28 Thread Negin Nickparsa
call session_destroy(); then start the session again

[PHP] session variable problem

2011-03-25 Thread markb
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, change existing ones (but they do

Re: [PHP] session variable problem

2011-03-25 Thread Ken Robinson
At 01:09 PM 3/25/2011, 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

Re: [PHP] session variable problem

2011-03-25 Thread markb
On 3/25/2011 12:13 PM, Ken Robinson wrote: At 01:09 PM 3/25/2011, 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

Re: [PHP] session variable problem

2011-03-25 Thread markb
On 3/25/2011 12:13 PM, Ken Robinson wrote: At 01:09 PM 3/25/2011, 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

Re: [PHP] session variable problem

2011-03-25 Thread Peter Lind
More info (including some code) would be needed to get to the bottom of this, I'd say. Hard to diagnose what's happening otherwise. Regards Peter -- hype WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 /hype -- PHP General Mailing List

Re: [PHP] Session Variable Problem

2010-03-22 Thread Gary
tedd Please accept my apologies for not thanking you sooner, I am going over you code and learning great stuff. Again, thank you. And thank you to Adam as well. gary tedd tedd.sperl...@gmail.com wrote in message news:p06240804c7cbe9aa1...@[192.168.1.102]... At 10:14 AM -0400 3/21/10, Gary

Re: [PHP] Session Variable Problem

2010-03-21 Thread tedd
At 2:22 PM -0400 3/20/10, Gary wrote: I have this perplexing issue of session varibles getting dropped. It is a 4 page form, the last page being a review page incase the submitter wants to change any of the information.If you go through the form, all of the information carries forward, and from

Re: [PHP] Session Variable Problem

2010-03-21 Thread Gary
Thanks again for all the help, however the plot thickens. I have put: ?php if(!isset($_SESSION)) { session_start(); } if (isset($_POST['lend_fname'])){ $_SESSION['lend_fname']=stripslashes($_POST['lend_fname']); } if (isset($_POST['lend_lname'])){

Re: [PHP] Session Variable Problem

2010-03-21 Thread tedd
At 10:14 AM -0400 3/21/10, Gary wrote: Thanks again for all the help, however the plot thickens. Gary : It doesn't have to thicken. Here's an example of using $_SESSION that works and you can have as many fields as you want: http://www.webbytedd.com/aa/step-form-sessions/index.php All the

[PHP] Session Variable Problem

2010-03-20 Thread Gary
I have this perplexing issue of session varibles getting dropped. It is a 4 page form, the last page being a review page incase the submitter wants to change any of the information.If you go through the form, all of the information carries forward, and from the review page if you go back to

Re: [PHP] Session Variable Problem

2010-03-20 Thread Adam Richardson
On Sat, Mar 20, 2010 at 2:22 PM, Gary gwp...@ptd.net wrote: I have this perplexing issue of session varibles getting dropped. It is a 4 page form, the last page being a review page incase the submitter wants to change any of the information.If you go through the form, all of the information

Re: [PHP] Session Variable Problem

2010-03-20 Thread Gary
Adam Thank you for your reply. Are you checking to see if the post variable is set in the code that handles saving the form values to session variables? No, I not done anything about the post variable, frankly I thought the session variable would cover it. I tried your code if

Re: [PHP] Session Variable Problem

2010-03-20 Thread Adam Richardson
On Sat, Mar 20, 2010 at 6:56 PM, Gary gwp...@ptd.net wrote: Adam Thank you for your reply. Are you checking to see if the post variable is set in the code that handles saving the form values to session variables? No, I not done anything about the post variable, frankly I thought the

[PHP] Session variable problem

2002-08-13 Thread Christian Ista
Hello, I'd like to use session variable. I do that (see below) but I receive an error. Other question, how can I do to know if a session variable is already defined ? ?php session_start()? ?php$_SESSION[LG] = 'EN';? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head

Re: [PHP] Session variable problem

2002-08-13 Thread Christian Ista
Add a missing space. ok thanks :) How use this variable in a query (mysql_query) ? Is it possible if a session variable is already defined ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] session variable problem

2001-04-16 Thread SERKAN BALKANLI (EB Bk.-Analist Prog.)
i am starting and registering session variable succesfully that i can see the file on the server , but when it comes to use or display i can not , the variable has no value ... the "session.save_handler = files" is in php.ini , i tried to change it to user but that occured a fatal error

Re: [PHP] session variable problem

2001-04-16 Thread Tobias Talltorp
The reason for the fatal error is that you can only store the sessions in three (or four) ways, files, in a database or in the memory. What variable has no value? Have you started the session before you try to access the values? session_start(); echo $your_value; (Or preferably) echo

Re: [PHP] session variable problem

2001-04-16 Thread Mesut TUNGA
Merhabalar, firstly do you use windows or linux? id you use windows you shoul give the session_save_path to the script. ( session_save_path("c:\\user\\tmp"); ) if you use linux and no changes in your .ini files, your sessions store in /tmp directory... ?php session_start(); $id = 123;