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.

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 8

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 th

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

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 dis

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 te

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: http://www.php.net/'); $fp = fopen('/tmp/log.txt', 'w

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

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: > 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 se

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 anyth

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 anythin

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 misco

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 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 Gustav Wiberg
TECTED]> Cc: "php list" 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...")

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 r

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 br

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 f

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 br

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 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). >

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

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 detectin

Re: [PHP] Session cookies in firefox

2005-05-10 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

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

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 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

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";

Re: [PHP] Session cookies appearing where there is no session

2001-01-15 Thread CC Zona
(responding to myself) In article <93uoh9$613$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (CC Zona) wrote: > This must sound pretty far-fetched, but as far as I can tell, my site is > attempting to set a session cookie from any and all PHP pages, even when > the page has no calls to session_* funct