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

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

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

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'] = "This is tree number one"; header("Location: >>

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

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

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

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

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

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

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

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

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

Re: [PHP] $_SESSION <- Learning

2004-05-09 Thread apur kurub ver.1
there must be session_start() before your code have you check the $row->user, is it have value?? rgds [xm] http://amadarum.e-tics.net/nigritude-ultramarine.php - Original Message - From: "Ross Bateman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 10, 2004 12:24 PM Subjec

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
The difference between the two probably works out to less than 10 milliseconds on most servers, from a quick study that I ran on some HP servers that were brand new last summer, with the faster times using the filesystem. Course, the flexibility gained in managing the database version caused us to

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. > > > > Why aren't my session o

[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] $_SESSION var sometimes set, sometimes not

2003-11-24 Thread Anthony Whipple
I just tried that. It made no change. Still sometimes works, sometimes doesn't. It's on the order of clicks. It may work three times in a row, then fail a couple times. It's very strange. "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anthony Whipple wrote: > >

Re: [PHP] $_SESSION var sometimes set, sometimes not

2003-11-24 Thread John W. Holmes
Anthony Whipple wrote: The following code sometimes produces output indicating that the session variables have been set, and sometimes is says that they have not been set. Unfortunately the server is not mine to configure, but if there is a problem with it, I can get in touch with the right people

Re: [PHP] _SESSION, _POST, and _GET

2003-11-17 Thread Marek Kilimajer
David T-G wrote: Yeah. In fact, about half an hour ago I figured that I was spending more time figuring out how to extract in the right order -- or in a limited way -- than I would just doing it right, so I started running through the code looking for any $pw and friends to change :-) When registe

Re: [PHP] _SESSION, _POST, and _GET

2003-11-16 Thread David T-G
John, et al -- ...and then John W. Holmes said... % % David T-G wrote: % % >...and then John W. Holmes said... % >% % >% This whole question revolves around the reason you're even extract()ing % >% anything to begin with... Why not just use the $_SESSION, $_POST, etc % >% arrays where you nee

Re: [PHP] _SESSION, _POST, and _GET

2003-11-16 Thread John W. Holmes
David T-G wrote: John, et al -- ...and then John W. Holmes said... % % David T-G wrote: % % >I have successfully used extract() to % >pull the data out of _SESSION each time; yay. % % This whole question revolves around the reason you're even extract()ing % anything to begin with... Why not j

Re: [PHP] _SESSION, _POST, and _GET

2003-11-16 Thread David T-G
John, et al -- ...and then John W. Holmes said... % % David T-G wrote: % % >I have successfully used extract() to % >pull the data out of _SESSION each time; yay. % % This whole question revolves around the reason you're even extract()ing % anything to begin with... Why not just use the $_SESS

Re: [PHP] _SESSION, _POST, and _GET

2003-11-16 Thread John W. Holmes
David T-G wrote: I have successfully used extract() to pull the data out of _SESSION each time; yay. This whole question revolves around the reason you're even extract()ing anything to begin with... Why not just use the $_SESSION, $_POST, etc arrays where you need them. There's no reason to extr

Re: [PHP] $_SESSION[''] variable not get passed

2003-11-10 Thread Rob Burris
S.P.Vimala wrote: Now the session_id get passwd across forms but the session variable does not get passwed. Any guess what is the problem. -vimala/. You need to call session_start() on frm2.php to resume the session http://us2.php.net/manual/en/function.session-start.php -- [E

RE: [PHP] $_SESSION stuffs that come with php.ini

2003-09-30 Thread esctoday.com | Wouter van Vliet
Hmm .. I haven't been on the list for a while so it took me some time to answer ;).. Anyways, what I believe is a possible cause for your problem is that there simply ain't no session started. Maybe the "always start session before the php page request" setting was On if not configured, but is now

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Scott Fletcher
Oh Ha ha... I see what you meant.. The $_SESSION['test'] had already been changed from one to two, then three, then four, then back to one. I didn't see that coming.. I thought it just start at one and haven't changed at all. Thanks!!! "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message new

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Scott Fletcher
I'm kind of expecting them to change because using the hyperlink to go to the next webpage should be treated as such for the same file (webpage file). The reason I'm using the same file is because of the navigation menu with all of the menu options that go to the include file... "Mike Migurski" <

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Mike Migurski
>If you go to the next webpage by using the same file (webpage) or a >$_SERVER['PHP_SELF'], the data in the $_SESSION array remain the same, it >does not change as it should. > if ($_SESSION['test'] == "one") { $_SESSION['test'] = "two" }; > if ($_SESSION['test'] == "two") { $_SESSION['test'

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Marek Kilimajer
Scott Fletcher wrote: $SID = session_name()."=".session_id(); if ($_SESSION['test'] == "one") { $_SESSION['test'] = "two" }; $_SESSION['test'] is now 'two', so the next test is true if ($_SESSION['test'] == "two") { $_SESSION['test'] = "three" }; $_SESSION['test'] is now 'three', so t

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Lars Torben Wilson
recieved the same > message. > > Any Ideas, to help me break through these barriers? > > Thanks so much > Dan > > > > - Original Message - > From: "Ralph" <[EMAIL PROTECTED]> > To: "'Daniel J. Rychlik'" <[EMAIL

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread John Nichel
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 1:50 AM Subject: RE: [PHP] $_SESSION as $key=>$value Daniel, Rather than sending them to a new page to validate the form and then sending them back if a field is invalid, do the error checking from the sa

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Daniel J. Rychlik
I tried to echo it as well, I recieved the same message. - Original Message - From: "Ralph" <[EMAIL PROTECTED]> To: "'Daniel J. Rychlik'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 6:50 PM Subject: RE: [PHP] $

RE: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Ralph
I think this may be because you did not include echo in: value=" " so try this: mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 4:28 PM To: Ralph; [EMAIL PROTECTED] Subject: Re: [PHP] $_SESSION as $key=>$value I read the document 4 times. I understand how it works and n

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Daniel J. Rychlik
t;[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 1:50 AM Subject: RE: [PHP] $_SESSION as $key=>$value > Daniel, > > Rather than sending them to a new page to validate the form and then > sending them back if a field is invalid, do the error checking from

RE: [PHP] $_SESSION as $key=>$value

2003-06-12 Thread Ralph
Daniel, Rather than sending them to a new page to validate the form and then sending them back if a field is invalid, do the error checking from the same script. Here's an example, a bit simple but just to give you an idea. For a better explanation, you should read this article which elaborates

Re: [PHP] $_SESSION question

2002-11-14 Thread Ernest E Vogelsinger
At 02:42 15.11.2002, Sascha Cunz said: [snip] >This sounds like a pretty good idea to work around that problem :-) > >Does this system work, if the user decides to split "one session" accross >multiple "Browser-Windows", i.e. the uses the "Open in new window

Re: [PHP] $_SESSION question

2002-11-14 Thread Sascha Cunz
Hi Jochen, > How can I process $_SESSION variables if the user disables cookies > and session.use_trans_sid = 0 ? You could use a combination of outputbuffering and a self-written session-handler. So you could build a trans_sid-alike system, that would do more checks (i.e. compare IP-Addresses)

Re: [PHP] $_SESSION question

2002-11-14 Thread Sascha Cunz
> Simply put - you can't. > > You need a way to transmit the session identifier, and AFAIK there's > nothing except either cookies or SID. > > Using SID for security relevant issues presents a problem - users can send > links with a SID to friends by mail or else, so this is not really a secure > s

  1   2   >