RE: [PHP] Problem with session

2005-02-05 Thread yangshiqi
o: yangshiqi Cc: php-general@lists.php.net Subject: Re: [PHP] Problem with session I found the problem. I have passed SID using GET and then using session_id($_GET['sid']);, it works fine. But it seems that I cannot use cookie at all. I tried to set cookie manually, setcookie();. Nothi

Re: [PHP] Problem with session

2005-02-05 Thread Theeraputh Mekathikom
I found the problem. I have passed SID using GET and then using session_id($_GET['sid']);, it works fine. But it seems that I cannot use cookie at all. I tried to set cookie manually, setcookie();. Nothing happen, I cannot retrive my variable using $_COOKIE['sid'];. Is there anyway to check cook

Re: [PHP] Problem with session

2005-02-05 Thread Thone
Greg Donald wrote: On Sat, 05 Feb 2005 17:53:01 +0700, Thone <[EMAIL PROTECTED]> wrote: Hi, I don't know what I did it wrong but i can send any variable through seesion. I have something like this: //page1.php session_start(); $_SESSION['time_to_expire'] = time + ALIVE_TIME; //page2.php session_s

Re: [PHP] Problem with session

2005-02-05 Thread Greg Donald
On Sat, 05 Feb 2005 17:53:01 +0700, Thone <[EMAIL PROTECTED]> wrote: > Hi, >I don't know what I did it wrong but i can send any variable through > seesion. I have something like this: > //page1.php > session_start(); > $_SESSION['time_to_expire'] = time + ALIVE_TIME; > > //page2.php > session_

[PHP] Problem with session

2005-02-05 Thread Thone
Hi, I don't know what I did it wrong but i can send any variable through seesion. I have something like this: //page1.php session_start(); $_SESSION['time_to_expire'] = time + ALIVE_TIME; //page2.php session_start(); print isset($_SESSION['time_to_expire']); always get '0'; thanks -- PHP Genera

RE: [PHP] Problem with session on first page loaded

2004-07-02 Thread Michael Sims
Jordi Canals wrote: > the ISP changed a param in the PHP.INI, and they changed > session.use_trans_sid setting it to 1. [...] > Now I should talk to the provider to not set this parameter to ON by > default, because the security risk on it (As stated on the manuals). If they allow you to use .htac

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Lars Torben Wilson wrote: About the cookie params (In PHP.INI) I checked them on the two platforms with phpinfo() and are exactly the same. Was your binary compiled with --enable-trans-sid? If so, I imagine the explanation would be something along the lines that because the session manager doesn

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Lars Torben Wilson
Jordi Canals wrote: Angelo, thanks for your comments. session_name must go before session_start. I think register_globals has nothing to do with session cookies. I always work with register_globals = off as recommended. About the cookie params (In PHP.INI) I checked them on the two platforms wi

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Angelo, thanks for your comments. session_name must go before session_start. I think register_globals has nothing to do with session cookies. I always work with register_globals = off as recommended. About the cookie params (In PHP.INI) I checked them on the two platforms with phpinfo() and are

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Jordi Canals wrote: This problem only arises on my ISP hosting (Linux+Apache 1.3) and does not show on my devel computer (Windows+Apache 2.0). I've been searching the manual, but found no explanation about that. Sorry forgot it: The two platforms run PHP 4.3.7 Thanks again, Jordi. -- PHP General

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Angelo binc2
shouldn't session_start() come first? also remember that your devel computer might have different settings in the PHP.ini file to that of your ISP, probably register_globals is set to off. I would check it. HTH Angelo >>> Jordi Canals <[EMAIL PROTECTED]> 7/2/2004 11:14:28 AM >>> Hi all, I have

[PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Hi all, I have an extrange problem with the session cookie: In all my pages there I have this two lines to start the session: session_name('jcwse'); session_start(); When I access my website, at any page, everytyhink works OK, and the session cookie is set with no problem except for links. In the

Re: [PHP] Problem With Session Handling

2004-02-28 Thread Rasmus Lerdorf
This stuff hasn't changed in about 5 years though. ignore_user_abort was introduced in 3.0.7 released March 1, 1999 and I remember writing that connection handling chapter in the manual sometime before that. -Rasmus On Sat, 28 Feb 2004, Kyndig wrote: > > > Rasmus Lerdorf wrote: > > Uh, sorry, I

Re: [PHP] Problem With Session Handling

2004-02-28 Thread Kyndig
Rasmus Lerdorf wrote: Uh, sorry, I meant "ignore_user_abort = On" These negated ini options suck. -Rasmus That fixed it! =) I'll make sure to read the Connection Handling chapter. I havn't looked into the php.ini docs, in quite a few php versions. I'm sure my knowledge about them is now outdat

Re: [PHP] Problem With Session Handling

2004-02-28 Thread Rasmus Lerdorf
Uh, sorry, I meant "ignore_user_abort = On" These negated ini options suck. -Rasmus On Sat, 28 Feb 2004, Rasmus Lerdorf wrote: > ignore_user_abort = Off > > in your php.ini file > > And read the Connection Handling chapter in the manual. > > -Rasmus > > On Sat, 28 Feb 2004, Kyndig wrote: > > > H

Re: [PHP] Problem With Session Handling

2004-02-28 Thread Rasmus Lerdorf
Uh, sorry, I meant "ignore_user_abort = On" These negated ini options suck. -Rasmus On Sat, 28 Feb 2004, Rasmus Lerdorf wrote: > ignore_user_abort = Off > > in your php.ini file > > And read the Connection Handling chapter in the manual. > > -Rasmus > > On Sat, 28 Feb 2004, Kyndig wrote: > > > H

Re: [PHP] Problem With Session Handling

2004-02-28 Thread Rasmus Lerdorf
ignore_user_abort = Off in your php.ini file And read the Connection Handling chapter in the manual. -Rasmus On Sat, 28 Feb 2004, Kyndig wrote: > Hi folks, > >I've been working on my website for a few years now. It uses SESSION > management. I am using: php4.3 version. A problem I have had

[PHP] Problem With Session Handling

2004-02-28 Thread Kyndig
Hi folks, I've been working on my website for a few years now. It uses SESSION management. I am using: php4.3 version. A problem I have had for awhile now is that all session information is lost if a page does not fully load. This wouldn't be an issue, except on every page load I create a My

Re: [PHP] Problem with session variables on Mac

2003-12-25 Thread Mike Migurski
> $session_time = $current_time - $_SESSION('timestamp'); > echo "session time = $session_time seconds."; > >The output to the browser (Safari) is as follows: > >inside check IF >Time = 1072308706. > >Fatal error: Call to undefined function: array() in >/Library/

[PHP] Problem with session variables on Mac

2003-12-24 Thread Jim & Sara Feldman
I should first admit to being a php newbie, so the answer may be obvious, but this looks like a bug to me. Global variables are OFF. I start a session at the very top of page "member.php": session_start(); In a function called from the same page, I store some variables in the session array:

[PHP] Problem with session management

2003-10-17 Thread Catia Crepaldi
Hi, I have discovered a very strange thing. The problem is that session management fails when I stop the browser while a PHP page is loading. As soon as the browser requests a file with a session_start or session_register command the browser gets in a kinda endless loop and the session file stay

RE: [PHP] Problem with session and register_globals=off

2002-10-26 Thread John W. Holmes
ECTED] > Subject: [PHP] Problem with session and register_globals=off > > Hello, > > When I try the code below and register_globals=On, its work fine, the > counter variable is incremented each time that I load the page, but, when > register_globals=Off, its does not work, the co

[PHP] Problem with Session and register_globals

2002-10-26 Thread Jacques Marques
Hello, When I try the code bellow with register_globals=On, it work was expected, the counter variable is incremented each time that I load the page, but, when I try with register_globals=Off, it doesn´t work, the counter variable is incremented just in the first time, the session variable is not

[PHP] Problem with session and register_globals=off

2002-10-26 Thread Alexandre
Hello, When I try the code below and register_globals=On, its work fine, the counter variable is incremented each time that I load the page, but, when register_globals=Off, its does not work, the counter variable is save just in first time and never more. How can I fix this? With out to turn re

Re: [PHP] Problem with session handling with frameset.

2002-09-09 Thread Justin French
on 10/09/02 1:01 PM, Jiaqing Wang ([EMAIL PROTECTED]) wrote: > Hello, Everyone, > I'm having some problem with the session handling in my code, it's kind of > hard to explain the whole problem but let me try. > I currently have a login page login.php which will take user input for > userid and pa

[PHP] Problem with session handling with frameset.

2002-09-09 Thread Jiaqing Wang
Hello, Everyone, I'm having some problem with the session handling in my code, it's kind of hard to explain the whole problem but let me try. I currently have a login page login.php which will take user input for userid and passwd and check them against my backend PostgreSQL database, after the pa

[PHP] Problem with session controiler files in PHP on Roxen

2001-09-06 Thread Andreas Lundgren
Hello! We installed php 4.0.6 in a Roxen 2.1.625 web server on Solaris 7. Now we have a problem with temporary session files. The session_start() command will abort with the following error message: Warning: open(/tmp/sess_e8771af1171a6cbdf51eebdba5199d25, O_RDWR) failed: m (0) in [path/file.

Re: [PHP] problem with session start

2001-08-10 Thread Renze Munnik
On Fri, Aug 10, 2001 at 01:58:54PM +0530, Balaji Ankem wrote: > Hi Andrew, >Thankyou now it is working well. > I would like to close the session after clicking logout button. > How to do? > > Thanks inadvance. > Regards > -Balaji session_destroy(); http://www.php.net/manual/en/function.ses

Re: [PHP] problem with session start

2001-08-10 Thread Balaji Ankem
: RE: [PHP] problem with session start You need to create a c:\tmp directory. --- Information transmitted by this E-MAIL is proprietary to Wipro Limited and is intended for use

[PHP] problem with session start

2001-08-10 Thread Balaji Ankem
Hi! friend,   i got the following error when i am goint to start a session.   This is the file. and i got the following errors.   Warning: open(/tmp\sess_4a3f421e3a28de6801941743c0632862, O_RDWR) failed: m (2) in c:\www\login.php on line 2Warning: open(/tmp\sess_4a3f421e3a28de6801941743c06328

[PHP] Problem with session vars !

2001-04-23 Thread Nicolas Guilhot
I am having problem with PHP4 session variables. I think I misunderstood how they work, and I can't see what I'm doing wrong. Any help would be appreciated. I am using the version from EasyPhp 1.1.1. Below is a short example to explain my problem. I've got two php scripts. 'test1.php' which start