Re: [PHP] Session updates ok first time only.

2002-01-29 Thread Floyd Baker
On Tue, 29 Jan 2002 12:11:02 +0800, you wrote: On Tuesday 29 January 2002 06:36, Floyd Baker wrote: Yes I have a c:\tmp directory and I see the session being created in it. And the page_view value of 1 after the first increment. The editor wants to reload each time I hit the submit button

Re: [PHP] Session updates ok first time only.

2002-01-29 Thread Floyd Baker
Jason put a little snip from the man that he found that works just fine on my pages. It looks like you increment or change the variable directly in the session register instead of doing it on the page. That sounds suspiciously like what you were trying to tell me. :-) What do you think...

Re: [PHP] Session updates ok first time only.

2002-01-29 Thread Floyd Baker
On Tue, 29 Jan 2002 12:11:02 +0800, you wrote: On Tuesday 29 January 2002 06:36, Floyd Baker wrote: Yes I have a c:\tmp directory and I see the session being created in it. And the page_view value of 1 after the first increment. The editor wants to reload each time I hit the submit button

Re: [PHP] Session updates ok first time only.

2002-01-28 Thread Floyd Baker
On Mon, 28 Jan 2002 15:20:05 +0800, you wrote: On Monday 28 January 2002 14:27, you wrote: Please keep discussion on the list! Sorry about that. I meant to.. //pull value from session file: $page_views = $_SESSION['page_views']; No need for this, in fact this is what is preventing it

Re: [PHP] Session updates ok first time only.

2002-01-28 Thread Jason Wong
On Monday 28 January 2002 20:52, Floyd Baker wrote: On Mon, 28 Jan 2002 15:20:05 +0800, you wrote: On Monday 28 January 2002 14:27, you wrote: 2) session.save_path = c:/tmp, I don't use PHP on Windows, but looking at the other settings, paths for Windows systems are specified with a

Re: [PHP] Session updates ok first time only.

2002-01-28 Thread Floyd Baker
On Mon, 28 Jan 2002 21:10:02 +0800, you wrote: On Monday 28 January 2002 20:52, Floyd Baker wrote: On Mon, 28 Jan 2002 15:20:05 +0800, you wrote: On Monday 28 January 2002 14:27, you wrote: 2) session.save_path = c:/tmp, I don't use PHP on Windows, but looking at the other settings, paths

Re: [PHP] Session updates ok first time only.

2002-01-28 Thread Erik Price
On Sunday, January 27, 2002, at 10:39 PM, Jason Wong wrote: On Monday 28 January 2002 04:37, Floyd Baker wrote: I have 4.1, register globals off, on Windows 98. //pull value from session file: $page_views = $_SESSION['page_views']; No need for this, in fact this is what is preventing it

Re: [PHP] Session updates ok first time only.

2002-01-28 Thread Jason Wong
On Tuesday 29 January 2002 06:36, Floyd Baker wrote: Yes I have a c:\tmp directory and I see the session being created in it. And the page_view value of 1 after the first increment. The editor wants to reload each time I hit the submit button after that but the value does not increase

[PHP] Session updates ok first time only.

2002-01-27 Thread Floyd Baker
Can someone tell me why this is not working right? Two pages are basically the same, passing an accumulating value back and forth. There is no other session being created. The first time it increments and passes to the second page, and is picked up. It puts a 1 in the session file. After

Re: [PHP] Session updates ok first time only.

2002-01-27 Thread Jason Wong
On Monday 28 January 2002 04:37, Floyd Baker wrote: Can someone tell me why this is not working right? Two pages are basically the same, passing an accumulating value back and forth. There is no other session being created. The first time it increments and passes to the second page, and is

Re: [PHP] Session updates ok first time only.

2002-01-27 Thread Jason Wong
On Monday 28 January 2002 14:27, you wrote: Please keep discussion on the list! //pull value from session file: $page_views = $_SESSION['page_views']; No need for this, in fact this is what is preventing it from working! Once you've used session_register('var'), $var is available for