Re: [PHP] Sessions: Trigger a new one, Expire an old one

2002-10-16 Thread Max Buvry
Hi, I use php 4.2.3 with session.auto_start = 1 in php.ini What I use with URL session : $_SESSION= array(); unset($_GET[session_name()]); session_destroy(); Header(Location: next_script.php); with cookie session : $cook_param= session_get_cookie_params();

[PHP] Postgres-Transaction-user_ignore_abort-Connection stop by the client

2002-10-16 Thread Max Buvry
Hi, I use Postgresql 7.2.2 + php 4.2.3 and I meet a problem with transaction and connections interruption. The application is the famous example of the bank accounts and the money transfers. I consider a table named DEAL where each transaction is saved. Each tuple has an id number as key. When

[PHP] Session and URL

2002-10-09 Thread Max Buvry
I meet a probleme with the session. My example considers 2 scripts : - the first script (test_session_url.php) opens a session (session.auto_start=1 in php.ini), defines a counter, prints some information and an hypertext to execute the second script which has session id as parameter

[PHP] Erase the cookie sessions

2002-10-08 Thread Max Buvry
Hi, I wish test the session. I use php 4.2.3 et session.auto_start is 1. My first example is : html head titleSession example/title body ?php if ( !isset($_SESSION['count']) ) { $_SESSION['count']= 1; } else { $_SESSION['count']++; } if ( $_SESSION['count'] 5 ) { $cpt =

Re: [PHP] Erase the cookie sessions

2002-10-08 Thread Max Buvry
Marek Kilimajer wrote: You miss closing } Thanks, but that's a copy-paste error and that's not my problem really. mb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Erase the cookie sessions

2002-10-08 Thread Max Buvry
Max Buvry wrote: Marek Kilimajer wrote: You miss closing } Thanks, but that's a copy-paste error and that's not my problem really. mb Solved : my solution for information (before test with url !) ?php if ( !isset($_SESSION['count']) ) $_SESSION['count']= 1; else $_SESSION

[PHP] Cookie

2002-10-02 Thread Max Buvry
Hi, I use : apache 1.3.26, php 4.2.3, postgresql 7.2 (under solaris 7). I attempt to modify my old sources which run with the previous versions and I meet a problem with the cookie. I read that we can see the contents of a cookie with 2 methods : echo $testcookie echo $_COOKIE[testcookie]

Re: [PHP] Cookie

2002-10-02 Thread Max Buvry
. There is an option in your ini.php file that refers to 'global variables' You need to set this on, otherwise reference to them with the absolute variable name. Best Regards Bob Irwin Server Admin Web Programmer Planet Netcom - Original Message - From: Max Buvry [EMAIL PROTECTED] To: [EMAIL