Re: [PHP] $_SESSION variables

2009-10-24 Thread Lester Caine
Ron Piggott wrote: Instead of doing: $_SESSION['order'][$reference]['quantity'] = 0; Is there a way to get remove that part of the array altogether? unset? unset($_SESSION['order'][$reference]['quantity']); Can't seem to reach php.net to confirm, but I use it myself ;) -- Lester Caine - G8H

Re: [PHP] $_SESSION variables

2009-10-24 Thread Phpster
27;quantity'] = 0; if the customer changed their mind about buying an item. Is there a way to remove the session variable altogether? Ron -Original Message- From: Ashley Sheridan Reply-to: a...@ashleysheridan.co.uk To: ron@actsministries.org Cc: PHP General Subject: Re: [PH

Re: [PHP] $_SESSION variables

2009-10-24 Thread Ron Piggott
heridan Reply-to: a...@ashleysheridan.co.uk To: ron@actsministries.org Cc: PHP General Subject: Re: [PHP] $_SESSION variables Date: Sat, 24 Oct 2009 12:52:17 +0100 On Sat, 2009-10-24 at 07:52 -0400, Ron Piggott wrote: > Instead of doing: > > $_SESSION['order'][$reference][

Re: [PHP] $_SESSION variables

2009-10-24 Thread Ashley Sheridan
On Sat, 2009-10-24 at 07:52 -0400, Ron Piggott wrote: > Instead of doing: > > $_SESSION['order'][$reference]['quantity'] = 0; > > Is there a way to get remove that part of the array altogether? > > Ron > > I don't understand your question.. Thanks, Ash http://www.ashleysheridan.co.uk

[PHP] $_SESSION variables

2009-10-24 Thread Ron Piggott
Instead of doing: $_SESSION['order'][$reference]['quantity'] = 0; Is there a way to get remove that part of the array altogether? Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] $_session/$_cookie trouble

2009-04-28 Thread Gary
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 http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_SESSION lost

2008-05-16 Thread Daniel Brown
On Fri, May 16, 2008 at 12:36 AM, hce <[EMAIL PROTECTED]> wrote: > Hi, > > I've just installed PHP 5.2.4 on a FC 7 with a web server. > > $ php -v > PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58) > Copyright (c) 1997-2007 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Re: [PHP] $_SESSION lost

2008-05-15 Thread Chris
> $ php -v > PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58) > Copyright (c) 1997-2007 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies This shows the php command line version, not the webserver php version. To do that, look at a phpinfo() page. They may indeed be the s

[PHP] $_SESSION lost

2008-05-15 Thread hce
Hi, I've just installed PHP 5.2.4 on a FC 7 with a web server. $ php -v PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies It seems some PHP module might be missing, I tested it with a page1.php: sess

Re: [PHP] $_SESSION NOT WORKING

2008-05-13 Thread Jens Himmelrath
Balpo schrieb: >> Hi everyone, I'm having a problem moving my code to a linux >> computer. I won't post the whole code here, but an accurate example >> that reproduces exactly the error. >> >> //**** 1.php > $_SESSION['tree

Re: [PHP] $_SESSION NOT WORKING

2008-05-13 Thread Balpo
Yes, that way it works. Thanx. But the Windows version of the same code and the same php.ini ***does not *** need the session_start() because it has the session.auto_start = 1 inside php.ini. The thing is, I think session.auto_start = 1 does not work on Linux. Is this a bug? Daniel Brown wro

RES: [PHP] $_SESSION NOT WORKING

2008-05-13 Thread Thiago Pojda
original- De: Daniel Brown [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 13 de maio de 2008 16:43 Para: Balpo Cc: PHP General Assunto: Re: [PHP] $_SESSION NOT WORKING On Tue, May 13, 2008 at 2:38 PM, Balpo <[EMAIL PROTECTED]> wrote: > Hi everyone, > I'm having a problem mo

Re: [PHP] $_SESSION NOT WORKING

2008-05-13 Thread Daniel Brown
On Tue, May 13, 2008 at 2:38 PM, Balpo <[EMAIL PROTECTED]> wrote: > Hi everyone, > I'm having a problem moving my code to a linux computer. > I won't post the whole code here, but an accurate example that reproduces > exactly the error. [snip!] Modify 2.php as follows: You only missed

Re: [PHP] $_SESSION NOT WORKING

2008-05-13 Thread Dmitri
Try adding session_start() at top of the script Balpo wrote: Hi everyone, I'm having a problem moving my code to a linux computer. I won't post the whole code here, but an accurate example that reproduces exactly the error. // 1.php // 2.php

[PHP] $_SESSION NOT WORKING

2008-05-13 Thread Balpo
Hi everyone, I'm having a problem moving my code to a linux computer. I won't post the whole code here, but an accurate example that reproduces exactly the error. // 1.php // 2.php // php.ini (incomplete) session.save_

Re: [PHP] $_SESSION v. Cookies

2008-05-11 Thread Craige Leeder
I can't see PHP sessions slowing down your site by that amount. As someone said, it should be no more than a split second. If you are having that much of a problem with them, then I would say it is either your implementation, or another determining factor. I would not, personally, stray away from

Re: [PHP] $_SESSION v. Cookies

2008-05-08 Thread Németh Zoltán
> On Wed, May 7, 2008 at 2:35 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > >> >> On Wed, 2008-05-07 at 14:29 -0600, Nathan Nobbe wrote: >> > On Wed, May 7, 2008 at 2:22 PM, Robert Cummings <[EMAIL PROTECTED]> >> > wrote: >> > >> > On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: >> >

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 2:35 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-05-07 at 14:29 -0600, Nathan Nobbe wrote: > > On Wed, May 7, 2008 at 2:22 PM, Robert Cummings <[EMAIL PROTECTED]> > > wrote: > > > > On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: > > > At 1

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Robert Cummings
On Wed, 2008-05-07 at 14:29 -0600, Nathan Nobbe wrote: > On Wed, May 7, 2008 at 2:22 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: > > At 12:34 PM -0400 5/7/08, Robert Cummings wrote: > > > > > >The exce

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread tedd
At 4:22 PM -0400 5/7/08, Robert Cummings wrote: On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: At 12:34 PM -0400 5/7/08, Robert Cummings wrote: > >The exception being when it performs cleanup. Cleanup should be >relegated to a cron job. Rob: What clean-up? All the inactive session file

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 2:22 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: > > At 12:34 PM -0400 5/7/08, Robert Cummings wrote: > > > > > >The exception being when it performs cleanup. Cleanup should be > > >relegated to a cron job. > > > > Rob: >

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Robert Cummings
On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: > At 12:34 PM -0400 5/7/08, Robert Cummings wrote: > > > >The exception being when it performs cleanup. Cleanup should be > >relegated to a cron job. > > Rob: > > What clean-up? All the inactive session files... inactive and garbage collection time

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread tedd
At 12:34 PM -0400 5/7/08, Robert Cummings wrote: The exception being when it performs cleanup. Cleanup should be relegated to a cron job. Rob: What clean-up? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://ww

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Wolf
Scott Campbell <[EMAIL PROTECTED]> wrote: > Dear PHP List, > > PHP 5, Apache2, MySQL 5, running on Ubuntu, viewing & deving with > FireFox and Konqueror (Linux). > > I am building a site with multiple tools and want to pass variables > throughout them all. Before, I was passing va

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Robert Cummings
On Wed, 2008-05-07 at 12:27 -0400, Scott Campbell wrote: > Dear PHP List, > > PHP 5, Apache2, MySQL 5, running on Ubuntu, viewing & deving with > FireFox and Konqueror (Linux). > > I am building a site with multiple tools and want to pass variables > throughout them all. Before, I was p

[PHP] $_SESSION v. Cookies

2008-05-07 Thread Scott Campbell
Dear PHP List, PHP 5, Apache2, MySQL 5, running on Ubuntu, viewing & deving with FireFox and Konqueror (Linux). I am building a site with multiple tools and want to pass variables throughout them all. Before, I was passing variables using HTML Form tags, but the site has grown too large

Re: [PHP] $_SESSION problem [NOW SOLVED]

2008-04-14 Thread Andrew Ballard
On Fri, Apr 11, 2008 at 5:34 PM, tedd <[EMAIL PROTECTED]> wrote: > At 11:33 AM -0400 4/11/08, Daniel Brown wrote: > > > On Fri, Apr 11, 2008 at 10:29 AM, Ford, Mike <[EMAIL PROTECTED]> > wrote: > > > > > > > > Sounds like a register_globals=On issue > > > > > > >It does to me, as well. I

[PHP] $_SESSION problem [NOW SOLVED]

2008-04-11 Thread tedd
At 11:33 AM -0400 4/11/08, Daniel Brown wrote: On Fri, Apr 11, 2008 at 10:29 AM, Ford, Mike <[EMAIL PROTECTED]> wrote: Sounds like a register_globals=On issue It does to me, as well. I know, Tedd, that on the php1.net site that you mentioned to me off-list, I'm about 99% positive t

Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Nathan Nobbe
top posting for the hell of it; disregard last post; i didnt see the [solved] sort-of thread. -nathan On Fri, Apr 11, 2008 at 7:44 AM, tedd <[EMAIL PROTECTED]> wrote: > At 10:12 PM -0400 4/10/08, Eric Wood wrote: > > > tedd wrote: > > > > > > > > [1] http://www.webbytedd.com/x/index.php > > > [2

Re: [PHP] $_SESSION problem

2008-04-11 Thread Nathan Nobbe
On Fri, Apr 11, 2008 at 6:30 AM, tedd <[EMAIL PROTECTED]> wrote: > Isn't that what the code is doing? > > I'm dumping the results in a print_r($_SESSION) -- isn't that he same > thing? sorry tedd; obviously i was hasty to post. but i figured just looking for the obvious would be a good exercise

Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Daniel Brown
On Fri, Apr 11, 2008 at 10:29 AM, Ford, Mike <[EMAIL PROTECTED]> wrote: > > Sounds like a register_globals=On issue It does to me, as well. I know, Tedd, that on the php1.net site that you mentioned to me off-list, I'm about 99% positive that it's the reason. Shared hosts generally keep

RE: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread Ford, Mike
On 11 April 2008 14:45, tedd advised: > At 10:12 PM -0400 4/10/08, Eric Wood wrote: >> tedd wrote: >>> >>> [1] http://www.webbytedd.com/x/index.php >>> [2] http://sperling.com/x/index.php >>> >>> Both of these demos have the exact same code; and are on the same >>> server; with exactly the same

Re: [PHP] $_SESSION problem [SOLVED (sort-of)]

2008-04-11 Thread tedd
At 10:12 PM -0400 4/10/08, Eric Wood wrote: tedd wrote: [1] http://www.webbytedd.com/x/index.php [2] http://sperling.com/x/index.php Both of these demos have the exact same code; and are on the same server; with exactly the same php-info -- so, why do they behave differently re sessions? S

Re: [PHP] $_SESSION problem

2008-04-11 Thread tedd
At 5:05 PM -0600 4/10/08, Nathan Nobbe wrote: On Thu, Apr 10, 2008 at 4:29 PM, tedd <[EMAIL PROTECTED]> wrote: Hi gang: I'm stumped and in need of some expert explanation. I have prepared two demos (showing code) for your enjoyment: [1]

Re: [PHP] $_SESSION problem

2008-04-11 Thread tedd
At 5:10 PM -0600 4/10/08, Nathan Nobbe wrote: On Thu, Apr 10, 2008 at 5:05 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: On Thu, Apr 10, 2008 at 4:29 PM, tedd <[EMAIL PROTECTED]> wrote: you might just dump out the session component of the p

Re: [PHP] $_SESSION problem

2008-04-10 Thread mike
I believe you can accomplish the same thing by just putting this in: register_shutdown_function('session_write_close'); On 4/10/08, paragasu <[EMAIL PROTECTED]> wrote: > it looks fine to me. but i want to share one bad experience with sessions. > the code i wrote work just fine on my testing se

Re: [PHP] $_SESSION problem

2008-04-10 Thread paragasu
it looks fine to me. but i want to share one bad experience with sessions. the code i wrote work just fine on my testing server (please note, the phpinfo is same with my production server). after days of figuring out why the session do not work. finally, i found the solutions. the solutions is to

Re: [PHP] $_SESSION problem

2008-04-10 Thread Eric Wood
tedd wrote: [1] http://www.webbytedd.com/x/index.php [2] http://sperling.com/x/index.php Both of these demos have the exact same code; and are on the same server; with exactly the same php-info -- so, why do they behave differently re sessions? Strange. I've run into issues whenever I use

Re: [PHP] $_SESSION problem

2008-04-10 Thread Nathan Nobbe
On Thu, Apr 10, 2008 at 5:05 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Thu, Apr 10, 2008 at 4:29 PM, tedd <[EMAIL PROTECTED]> wrote: > you might just dump out the session component of the php config on each > site to ensure theyre the same. > on that last note, this could be useful, -

Re: [PHP] $_SESSION problem

2008-04-10 Thread Nathan Nobbe
On Thu, Apr 10, 2008 at 4:29 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I'm stumped and in need of some expert explanation. > > I have prepared two demos (showing code) for your enjoyment: > > [1] http://www.webbytedd.com/x/index.php > [2] http://sperling.com/x/index.php > > Both of these

[PHP] $_SESSION problem

2008-04-10 Thread tedd
Hi gang: I'm stumped and in need of some expert explanation. I have prepared two demos (showing code) for your enjoyment: [1] http://www.webbytedd.com/x/index.php [2] http://sperling.com/x/index.php Both of these demos have the exact same code; and are on the same server; with exactly the sam

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-18 Thread Nuno Vaz Oliveira
From Roman: Roman: [...] You don't need to know your IP. See the grammar for AbsoluteURI: ftp://ftp.rfc-editor.org/in-notes/rfc2396.txt I'm asking this because my IP is dynamic and I'm using a free redirection service. My site is at 'http://something.no-ip.org/sitename' can I use 'http://someth

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 08:59:11 +: > >Roman: > >[...] > >You don't need to know your IP. See the grammar for AbsoluteURI: > >ftp://ftp.rfc-editor.org/in-notes/rfc2396.txt > > > >>I'm asking this because my IP is dynamic and I'm using a free > >>redirection service. My site is at > >>'

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-18 Thread pub
On Jan 18, 2007, at 12:59 AM, Nuno Vaz Oliveira wrote: Roman: [...] You don't need to know your IP. See the grammar for AbsoluteURI: ftp://ftp.rfc-editor.org/in-notes/rfc2396.txt I'm asking this because my IP is dynamic and I'm using a free redirection service. My site is at 'http://something.

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-18 Thread Nuno Vaz Oliveira
Roman: [...] You don't need to know your IP. See the grammar for AbsoluteURI: ftp://ftp.rfc-editor.org/in-notes/rfc2396.txt I'm asking this because my IP is dynamic and I'm using a free redirection service. My site is at 'http://something.no-ip.org/sitename' can I use 'http://something.no-ip.org

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-18 00:06:27 +: > >Roman wrote: > >Also, the header() call you provided in the original post was a > >violation of HTTP. Knowing the programming language is just one of > >your responsibilities IMNSHO. The manual for HTTP users (you!) is at > >ftp://ftp.rfc-editor.

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Nuno Vaz Oliveira
Roman wrote: # [EMAIL PROTECTED] / 2007-01-17 19:06:16 +: Stut wrote: Redirecting using a Location header is not the only thing you can do with the header() function. It will never end processing of the script no matter what you pass to it. The example on the manual page for the header() f

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-17 19:06:16 +: > Stut wrote: > >Redirecting using a Location header is not the only thing you can do > >with the header() function. It will never end processing of the script > >no matter what you pass to it. The example on the manual page for the > >header() fu

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-17 Thread Nuno Oliveira
Stut wrote: Redirecting using a Location header is not the only thing you can do with the header() function. It will never end processing of the script no matter what you pass to it. The example on the manual page for the header() function says as much (http://php.net/header), you read that

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-16 Thread Stut
Nuno Oliveira wrote: Sometimes in my code I use the Header('Location: index.php?var=value'); and I've found out (I think) that when one of these headers are executed by PHP, the rest of the script gets executed. I'm thinking that this is the problem because I've eliminated all the occurrences

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-16 Thread Nuno Oliveira
David Giragosian wrote: On 1/16/07, Nuno Oliveira <[EMAIL PROTECTED]> wrote: Hi, I'm working on a website and one of the features that I've implemented so far is the user timeout. Every time that a user browses to a different page, the variable named $_SESSION['user']['lastactive'] is updated

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-16 Thread David Giragosian
On 1/16/07, Nuno Oliveira <[EMAIL PROTECTED]> wrote: Hi, I'm working on a website and one of the features that I've implemented so far is the user timeout. Every time that a user browses to a different page, the variable named $_SESSION['user']['lastactive'] is updated to the current time. Ho

[PHP] $_SESSION variable gets lost on FORM action

2007-01-16 Thread Nuno Oliveira
Hi, I'm working on a website and one of the features that I've implemented so far is the user timeout. Every time that a user browses to a different page, the variable named $_SESSION['user']['lastactive'] is updated to the current time. However, before that, my PHP scripts check if the ses

Re: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-25 Thread Jochem Maas
x27;t see anything that seems relevant. the session is not set to auto start on the not working server per chance? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 4:54 PM To: php-general@lists.php.net Cc: [EMAIL PROTECTED] Sub

RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread Daevid Vincent
ration, but I can't figure out what it would be. I've compared the php.ini files and don't see anything that seems relevant. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 24, 2006 4:54 PM > To: php-gener

Re: [PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread tg-php
You say it's working on one box and not on the other? Maybe I'm wrong (and sounds like I am) but I thought that you couldn't pass objects between scripts even with serialize()? Certainly sounds like it was working for you... can anyone clarify what objects/variables/data types can be passed

[PHP] $_SESSION saves all values but Class -- works on one server but not another?! [second plead for help]

2006-01-24 Thread Daevid Vincent
Thought I'd give this another shot since I still can't figure it out after nearly a week... I have a gentoo server that doesn't save/restore the CLASS portion of a session, but it does retain other $_SESSION values. This code works fine on a debian box. WORKING BOX: [EMAIL PROTECTED]:/lockdown# p

RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-19 Thread Daevid Vincent
work. > > > > What's really confusing me is that part of the SESSION does work. I > > would > > expect an all or nothing case. Everything but the class is restored. > > > > "You had me at EHLO" --E.Webb (10.04.05) > > > >> -Origi

RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-19 Thread Richard Lynch
me at EHLO" --E.Webb (10.04.05) > >> -Original Message- >> From: Richard Lynch [mailto:[EMAIL PROTECTED] >> Sent: Thursday, January 19, 2006 1:54 PM >> To: Daevid Vincent >> Subject: Re: [PHP] $_SESSION saves all values but Class -- >> works on one

RE: [PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-19 Thread Daevid Vincent
or nothing case. Everything but the class is restored. "You had me at EHLO" --E.Webb (10.04.05) > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 19, 2006 1:54 PM > To: Daevid Vincent > Subject: Re: [PHP] $_SESSION saves

[PHP] $_SESSION saves all values but Class -- works on one server but not another?!

2006-01-18 Thread Daevid Vincent
I have a gentoo server that doesn't save/restore the CLASS portion of a session, but it does retain other $_SESSION values. This code works fine on a debian box. WORKING BOX: [EMAIL PROTECTED]:/lockdown# php --version PHP 5.0.3 (cli) (built: Jan 5 2006 13:18:18) Copyright (c) 1997-2004 The PHP Gr

Re: [PHP] $_SESSION and header()

2005-06-30 Thread Richard Lynch
On Sun, June 26, 2005 7:33 am, Alessandro Rosa said: > (a) : After saving a couple of data into two $_SESSION variables from a > form, > (b) : I used the header() function to redirect the browser to > (c) : display another page. (c) needs at the top, just like (a) and (b) and (z) for any other pa

Re: [PHP] $_SESSION and header()

2005-06-26 Thread Alessandro Rosa
Does (c) have at the top of its page: André > You have to pass the session ID between pages, either by setting > session.use_cookies = 1 (so that the session ID is passed using a > cookie where possible) or append the session ID to the URL you are > redirecting to as part of the query parameter

Re: [PHP] $_SESSION and header()

2005-06-26 Thread Paul Waring
On Sun, Jun 26, 2005 at 04:33:30PM +0200, Alessandro Rosa wrote: > But, when I'm in the new page of (c), the $_SESSION variables stored > in (a) are no longer available and I can get anymore their values then, > (I can't say if they have been unset or erased). You have to pass the session ID betwe

[PHP] $_SESSION and header()

2005-06-26 Thread Alessandro Rosa
(a) : After saving a couple of data into two $_SESSION variables from a form, (b) : I used the header() function to redirect the browser to (c) : display another page. But, when I'm in the new page of (c), the $_SESSION variables stored in (a) are no longer available and I can get anymore their va

[PHP] $_SESSION

2004-07-02 Thread Dennis Koot
Hello all, i have a question concerning the $_SESSION stuff. i have a domain registered with online webspace on this webspace i have put a litte bit of code that will send the visitor's of the website to my server using a frame. I open one frame full-screen size and i let it open MY_IP/base/inde

Re: [PHP] $_SESSION <- Learning

2004-05-09 Thread apur kurub ver.1
ay, May 10, 2004 12:24 PM Subject: [PHP] $_SESSION <- Learning > Hi > > I am finally starting to try and use register_globals = off on my Servers. > This means a lot of code that has to be checked and changed. > > Unfortunatly I am struggeling to come to grips with this new conc

[PHP] $_SESSION <- Learning

2004-05-09 Thread Ross Bateman
Hi I am finally starting to try and use register_globals = off on my Servers. This means a lot of code that has to be checked and changed. Unfortunatly I am struggeling to come to grips with this new concept (new to me that is) and was wondering if anybody could give me some pointers. Getting st

RE: [PHP] $_SESSION vs Database Call

2004-03-25 Thread Chris W. Parker
Vail, Warren on Thursday, March 25, 2004 4:40 PM said: > Answer was; only the paranoid > would notice the difference ;-). Course our user population was > relatively small (100 - 500 concurrently signed on). i don't even think rainman would notice 10 milliseconds.

RE: [PHP] $_SESSION vs Database Call

2004-03-25 Thread Vail, Warren
:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 3:19 PM To: [EMAIL PROTECTED] Subject: [PHP] $_SESSION vs Database Call Just wondering, what is faster / more effecient, storing a value in the session variable which gets stored on the filesystem (from what i understand) or database calls to re-get the

[PHP] $_SESSION vs Database Call

2004-03-25 Thread Chris Thomas
Just wondering, what is faster / more effecient, storing a value in the session variable which gets stored on the filesystem (from what i understand) or database calls to re-get the information? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] $_SESSION

2004-01-20 Thread John Nichel
Alex Hogan wrote: I've got a question that I'm sure has a simple answer. Why aren't my session objects transferring across more than one page? I'm calling a session object that was set in the page prior; $_SESSION['mysessionvar'] = $_REQUEST['mytxtobj']; I then assign a variable that value; $

RE: [PHP] $_SESSION

2004-01-20 Thread Ryan A
limiter - headers > already sent. > > > > > > -Original Message- > > From: Aaron Wolski [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, January 20, 2004 12:31 PM > > To: 'Alex Hogan'; 'PHP General list' > >

RE: [PHP] $_SESSION

2004-01-20 Thread Alex Hogan
Oopps, my bad. sorry. That worked like a champ... Thanks..., I'll sulk off now... > -Original Message- > From: Aaron Wolski [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 20, 2004 12:46 PM > To: 'Alex Hogan'; 'PHP General list' &g

Re: [PHP] $_SESSION

2004-01-20 Thread Ben Ramsey
Alex Hogan wrote: I got back an error that read; Warning: session_start(): Cannot send session cookie - headers already sent by Warning: session_start(): Cannot send session cache limiter - headers already sent. You need to use session_start() before any headers are written. -Ben -- PHP Gen

RE: [PHP] $_SESSION

2004-01-20 Thread Aaron Wolski
You have to put it at the top of the page prior to anything else. > -Original Message- > From: Alex Hogan [mailto:[EMAIL PROTECTED] > Sent: January 20, 2004 1:45 PM > To: 'PHP General list' > Subject: RE: [PHP] $_SESSION > > > Yeah..., I tried that.

RE: [PHP] $_SESSION

2004-01-20 Thread Alex Hogan
[EMAIL PROTECTED] > Sent: Tuesday, January 20, 2004 12:31 PM > To: 'Alex Hogan'; 'PHP General list' > Subject: RE: [PHP] $_SESSION > > You need to call session_start() on each page. > > > -Original Message- > > From: Alex Hogan [mailto:[EM

RE: [PHP] $_SESSION

2004-01-20 Thread Aaron Wolski
You need to call session_start() on each page. > -Original Message- > From: Alex Hogan [mailto:[EMAIL PROTECTED] > Sent: January 20, 2004 1:29 PM > To: PHP General list > Subject: [PHP] $_SESSION > > I've got a question that I'm sure has a simple answer. &

[PHP] $_SESSION

2004-01-20 Thread Alex Hogan
I've got a question that I'm sure has a simple answer. Why aren't my session objects transferring across more than one page? I'm calling a session object that was set in the page prior; $_SESSION['mysessionvar'] = $_REQUEST['mytxtobj']; I then assign a variable that value; $myvar = $_

Re: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Kirk Babb
Guess I'm being nosy here, so forgive me, but why are you settting an alternate save path and using ini_set at the start of each document? I know that has nothing to do with the problem, but I was just wondering. Are you hosting multiple sites off your server and have different session settings d

[PHP] Re: PHP $_SESSION Expiring in IE

2004-01-03 Thread Al
IE and Moz have different JAVA script engines. Try turning off JAVA and see if IE maintains it's session. Tarrant Costelloe wrote: Hello, I have recently launched the new Planet-Tolkien.com, one would think that writing a message board from scratch and a dynamic weather system, a simple sessi

RE: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Tarrant Costelloe
ECTED] Sent: 03 January 2004 21:13 To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP $_SESSION Expiring in IE Have you tried the header(Cache-control: private) workaround for IE6? I seem to remember reading something about that on one of the web dev sites (devshed probably). Use that immediate

Re: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Kirk Babb
net Explorer is the only browser that > seemingly looses the members $_SESSION where as Mozilla is not effected > whatsoever. > > In Fellowship, > Tarrant > > -Original Message- > From: Larry Brown [mailto:[EMAIL PROTECTED] > Sent: 03 January 2004 16:34 > To: Tarrant Co

RE: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Tarrant Costelloe
ip, Tarrant -Original Message- From: Larry Brown [mailto:[EMAIL PROTECTED] Sent: 03 January 2004 16:34 To: Tarrant Costelloe; PHP List Subject: RE: [PHP] PHP $_SESSION Expiring in IE I use sessions with IE all the time without such a problem. Are there any points in the program that red

RE: [PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Larry Brown
browser? If so do you always run the session_start before these checks? -Original Message- From: Tarrant Costelloe [mailto:[EMAIL PROTECTED] Sent: Saturday, January 03, 2004 10:27 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP $_SESSION Expiring in IE Hello, I have recently launched the new

[PHP] PHP $_SESSION Expiring in IE

2004-01-03 Thread Tarrant Costelloe
Hello, I have recently launched the new Planet-Tolkien.com, one would think that writing a message board from scratch and a dynamic weather system, a simple session login would be the least of my problems right? Wrong. It would appear that for Mozilla and Opera keep a $_SESSION is not an issue an

  1   2   >