RE: [PHP] session cookies enabled?

2007-05-08 Thread WeberSites LTD
I don't think that there is a difference between session or regular cookie acceptance. Have a look at the 1st code example here : http://www.php-code-search.com/?q=cookie%20support berber -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007

Re: [PHP] session cookies enabled?

2007-05-08 Thread Richard Lynch
On Tue, May 8, 2007 1:31 pm, [EMAIL PROTECTED] wrote: How does one check to see if the user's browser accepts session cookies? My browser doesn't make that decision. I do. :-) Send me one and see if it comes back. If it does come back, use it as your cookie. Don't send me a second cookie. I

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Rasmus Lerdorf wrote: That's a bit misleading. The HTTP response headers are sent a soon as you output something from your script (calling header() or setcookie() doesn't count as output, so you can set all the headers and cookies you want). They're sent to Apache, but that doesn't mean

Re: [PHP] session cookies

2005-09-02 Thread Philip Hallstrom
Rasmus Lerdorf wrote: That's a bit misleading. The HTTP response headers are sent a soon as you output something from your script (calling header() or setcookie() doesn't count as output, so you can set all the headers and cookies you want). They're sent to Apache, but that doesn't mean

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: Rasmus Lerdorf wrote: That's a bit misleading. The HTTP response headers are sent a soon as you output something from your script (calling header() or setcookie() doesn't count as output, so you can set all the headers and cookies you want). They're sent to

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Chris Shiflett wrote: And the browsers tend to redirect right away once they get this header. I would find that very surprising. Maybe I'll experiment. I tested this with Firefox 1.0.4, Firefox 1.0.6, and Safari 1.3. None of them request the new URL before receiving the previous response

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: Chris Shiflett wrote: And the browsers tend to redirect right away once they get this header. I would find that very surprising. Maybe I'll experiment. I tested this with Firefox 1.0.4, Firefox 1.0.6, and Safari 1.3. None of them request the new URL before

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Rasmus Lerdorf wrote: Then you have configured your server to always turn on output buffering or your test script is bad. I don't think it's either, but I'll let you decide. I tried a new test with your code and some slight modifications: ?php header('Location: http://www.php.net/'); $fp =

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: Rasmus Lerdorf wrote: Then you have configured your server to always turn on output buffering or your test script is bad. I don't think it's either, but I'll let you decide. I tried a new test with your code and some slight modifications: Why modify my test? What

Re: [PHP] session cookies

2005-09-02 Thread Chris Shiflett
Rasmus Lerdorf wrote: Why modify my test? Because it has less delay. Thus, it's more difficult to tell if the browser is requesting the new URL before or after receiving the entire response. My script is essentially the same thing, but the script takes 30 seconds to execute. It makes the

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Chris Shiflett wrote: Rasmus Lerdorf wrote: Why modify my test? Because it has less delay. Thus, it's more difficult to tell if the browser is requesting the new URL before or after receiving the entire response. My script is essentially the same thing, but the script takes 30 seconds

Re: [PHP] session cookies

2005-09-02 Thread Rasmus Lerdorf
Rasmus Lerdorf wrote: Chris Shiflett wrote: Rasmus Lerdorf wrote: Why modify my test? Because it has less delay. Thus, it's more difficult to tell if the browser is requesting the new URL before or after receiving the entire response. My script is essentially the same thing, but the script

Re: [PHP] session cookies

2005-09-01 Thread Philip Hallstrom
Is there a way, using PHP, to determine if session cookies are enabled (or disabled) in the user's browser privacy settings? Set a cookie using setcookie(). Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. On that page, see if the

Re: [PHP] session cookies

2005-09-01 Thread Mikey
Jasper Bryant-Greene wrote: Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked for me, and it's a much better way to redirect users for

Re: [PHP] session cookies

2005-09-01 Thread Philip Hallstrom
Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked for me, and it's a much better way to redirect users for many reasons[1] (like not

Re: [PHP] session cookies

2005-09-01 Thread Jasper Bryant-Greene
Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked for me, and it's a much better way to redirect users for many reasons[1] (like not

Re: [PHP] session cookies

2005-09-01 Thread Jasper Bryant-Greene
Mikey wrote: Jasper Bryant-Greene wrote: Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked for me, and it's a much better way to

Re: [PHP] session cookies

2005-09-01 Thread Gustav Wiberg
@lists.php.net Sent: Thursday, September 01, 2005 10:43 PM Subject: Re: [PHP] session cookies Philip Hallstrom wrote: Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page. Why not header(Location...)? Just out of interest -- it's always worked

Re: [PHP] session cookies

2005-09-01 Thread Chris Shiflett
Philip Hallstrom wrote: Is there a way, using PHP, to determine if session cookies are enabled (or disabled) in the user's browser privacy settings? Set a cookie using setcookie(). Then use an HTML meta refresh (or javascript, just not Header(Location...) to redirect them to another page.

Re: [PHP] session cookies

2005-09-01 Thread Chris Shiflett
Jasper Bryant-Greene wrote: That is not true. The output to the client will look like this: HTTP/1.1 302 Found Set-Cookie: name=value;domain=whatever Location: http://my.domain.com/my.php [...] Very nice explanation. :-) It is a common misconception that header('Location: ...') redirects the

Re: [PHP] session cookies

2005-09-01 Thread Rasmus Lerdorf
Chris Shiflett wrote: Jasper Bryant-Greene wrote: That is not true. The output to the client will look like this: HTTP/1.1 302 Found Set-Cookie: name=value;domain=whatever Location: http://my.domain.com/my.php [...] Very nice explanation. :-) It is a common misconception that

Re: [PHP] Session cookies in firefox

2005-05-11 Thread Richard Lynch
On Tue, May 10, 2005 7:04 pm, Kirsten said: I'm using php sessions with cookies. I realized that Firefox shared cookies between different instances (unlike IE that when someone open a new bank window a new session is created). That's because IE stupidly creates a whole new program/process on

Re: [PHP] Session cookies in firefox

2005-05-11 Thread Petar Nedyalkov
On Wednesday 11 May 2005 05:04, Kirsten wrote: I'm using php sessions with cookies. I realized that Firefox shared cookies between different instances (unlike IE that when someone open a new bank window a new session is created). Has anyone found a solution to this problem? Maybe detecting

Re: [PHP] Session cookies in firefox

2005-05-11 Thread Kirsten
Here's a solution: It's not a problem. It's the way it's SUPPOSED to be. :-) It's actually a BETTER browser because of that. I found dozens of firefox related sites that say that this is one of the good things IE has (like showModalDialog). Maybe it's just me, but it sounds to me like you

Re: [PHP] Session cookies in firefox

2005-05-11 Thread Jason Wong
On Wednesday 11 May 2005 13:26, Richard Lynch wrote: On Tue, May 10, 2005 7:04 pm, Kirsten said: I'm using php sessions with cookies. I realized that Firefox shared cookies between different instances (unlike IE that when someone open a new bank window a new session is created). That's

Re: [PHP] session cookies

2002-09-19 Thread Chris Shiflett
Jeff Bluemel wrote: I want to force it to use a cookie that points to a transparent SID on my system. Can you elaborate on this? I have no idea what you mean. I've got the following options in my php.ini, but the system doesn't seem to ever use a cookie, and the sessions don't die. (that's

Re: [PHP] session cookies

2002-09-19 Thread Chris Shiflett
I also just noticed that you have session.use_only_cookies = 1, so unless you get the session ID back in a cookie, the session will restart. Chris Shiflett wrote: I've got the following options in my php.ini, but the system doesn't seem to ever use a cookie, and the sessions don't die.

Re: [PHP] session cookies

2002-09-19 Thread Jeff Bluemel
Jeff Bluemel wrote: I want to force it to use a cookie that points to a transparent SID on my system. Can you elaborate on this? I have no idea what you mean. for some reason when I was reading the documentation on sessions on php.net I thought it stated that it was possible to have a

RE: [PHP] session/cookies

2002-03-01 Thread Johnson, Kirk
Start by adding a session_start() to the 2nd file, then see what happens. Kirk Hi again, I am doing a simple example of cookies and my server seems to get frozen. Basically, what I do is: file01.php: ? session_start(); seession_register(sess_var); sess_var = Hello; ?