Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Shawn McKenzie
Gary wrote: > Thanks again, dont see any DOM > > As I mentioned I am no longer getting error message, but not sure it is > working. > > I have this at the begining of the first file. > > session_start(); > setcookie('sale_cookie','$sale_value', time()-3600); > setcookie('assess_cookie','$a

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Lists
Gary wrote: Thanks again, dont see any DOM As I mentioned I am no longer getting error message, but not sure it is working. I have this at the begining of the first file. if (isset($_COOKIE['sale_cookie']) && isset($_COOKIE['assess_cookie'])) { $_SESSION['sale_value'] = $_COO

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Igor Escobar
Make sure your file isn't a UTF-8 with DOM. Regards, Igor Escobar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Tue, Apr 28, 2009 at 5:13 PM, Ashley Sheridan wrote: > On Tue, 2009-04-28 at 15:

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Andrew Hucks
Take the values out of single quotes, else it sets them as strings, and not as the variable value. Also, are you meaning to set the cookie's expiration to time()-3600? Try time()+3600. On Tue, Apr 28, 2009 at 4:49 PM, Ashley Sheridan wrote: > On Tue, 2009-04-28 at 16:38 -0400, Gary wrote: >> Than

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ashley Sheridan
On Tue, 2009-04-28 at 16:38 -0400, Gary wrote: > Thanks again, dont see any DOM > > As I mentioned I am no longer getting error message, but not sure it is > working. > > I have this at the begining of the first file. > > session_start(); > setcookie('sale_cookie','$sale_value', time()-360

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
Thanks again, dont see any DOM As I mentioned I am no longer getting error message, but not sure it is working. I have this at the begining of the first file. I have tried this echo $sale_value; echo $_SESSION['assess_value']; echo $_COOKIE['sale_cookie']; I have also removed all of t

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ashley Sheridan
On Tue, 2009-04-28 at 15:34 -0400, Gary wrote: > Ashley > > There are 3 include files, the first is all html, but it has a form, so I > put the session_start above the DTD and I no longer get the error messages. > > I had the session_start at the beginning of the second file, the php > processi

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
Ashley There are 3 include files, the first is all html, but it has a form, so I put the session_start above the DTD and I no longer get the error messages. I had the session_start at the beginning of the second file, the php processing file, but that produced the error. It seemed to be callin

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
Igor Thanks for the link. It was suggested that I must put the session_start() before all code on the parent page. I am no longer getting the error messages,so I am assuming I am making progress, however I have yet to be able to get the $_SESSION or $_COOKIE to produce results...such as the

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ashley Sheridan
On Tue, 2009-04-28 at 15:24 -0400, Gary wrote: > Ashley > > Thanks for your reply, but no, that is not it. There was no other code > prior. > > Gary > "Ashley Sheridan" wrote in message > news:1240945179.3494.61.ca...@localhost.localdomain... > > On Tue, 2009-04-28 at 10:48 -0400, Gary wrote:

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
Ashley Thanks for your reply, but no, that is not it. There was no other code prior. Gary "Ashley Sheridan" wrote in message news:1240945179.3494.61.ca...@localhost.localdomain... > On Tue, 2009-04-28 at 10:48 -0400, Gary wrote: >> I am trying to set a cookie and a session, but seem to be run

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Igor Escobar
http://www.tech-recipes.com/rx/1489/solve-php-error-cannot-modify-header-information-headers-already-sent/ Regards, Igor Escobar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Tue, Apr 28, 2009

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ashley Sheridan
On Tue, 2009-04-28 at 10:48 -0400, Gary wrote: > I am trying to set a cookie and a session, but seem to be running into a > wall. > > I have tried different variations, and keep getting the same error message > > If I have this > > > session_start(); > > I get this: > Warning: session_start(

RE: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Ford, Mike
On 28 April 2009 15:48, Gary advised: > I am trying to set a cookie and a session, but seem to be running into a > wall. > > I have tried different variations, and keep getting the same error message > > If I have this > > > session_start(); > > I get this: > Warning: session_start() [functi