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_

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

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

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/

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

2002-10-26 Thread John W. Holmes
$counter is not related to the session at all with register_globals OFF. Use $HTTP_SESSION_VARS['count']++; ---John Holmes... > -Original Message- > From: Alexandre [mailto:alexandre@;cmsmedical.com.br] > Sent: Saturday, October 26, 2002 2:42 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Pr

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

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