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
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
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
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_
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> $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/
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:
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
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
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
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
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
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
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.
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
You need to create a c:\tmp
directory.
---
Information transmitted by this E-MAIL is proprietary to Wipro Limited and
is intended for use
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
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
31 matches
Mail list logo