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
2007 8:31 PM To: PHP List Subject: [PHP] session cookies enabled? Hello, How does one check to see if the user's browser accepts session cookies? Best, Craig -- - Virtual Phonecards - Instant Pin by Email - -

[PHP] session cookies enabled?

2007-05-08 Thread ccspencer
Hello, How does one check to see if the user's browser accepts session cookies? Best, Craig -- - Virtual Phonecards - Instant Pin by Email - - Large Selection - Great Rates- - http://speedypin.com/?aff

[PHP] session cookies, domain (host:port) issues

2005-11-24 Thread anirudh dutt
hi some thoughts on session cookies... when setting the domain for the cookie, u could use $_SERVER['HTTP_HOST'] which would be 'example.com' or 'www.example.com' i.e. session_set_cookie_params(30*60, '/', $_SERVER['HTTP_HOST'], false); (assuming u don't want to set it for subdomains) if the webse

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

[PHP] session cookies

2005-09-01 Thread Don
Hi, Is there a way, using PHP, to determine if session cookies are enabled (or disabled) in the user's browser privacy settings? Thanks, Don

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

[PHP] Session cookies in firefox

2005-05-10 Thread Kirsten
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 the new instance and generating a new session id. Tha

[PHP] Session cookies in firefox

2005-05-10 Thread Kirsten
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 the new instance and generating a new session id. Tha

[PHP] Session cookies

2002-11-03 Thread Shaun
Hi, When the user logs in , i create a session with session varialbles, the session cookie is saved on clients computer. When i log off i say session_unset(); session_destroy(); setcookie(session_name()); The session in the tmp is deleted , but the cookie is still there , i know this because wh

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

[PHP] session & cookies

2002-09-19 Thread Jeff Bluemel
OK guys... here's my question - I'm using 4.2.3 and apache 1.3.26, and I've got sessions setup. however, it seems to be using an SID attached to the URL, and I want to force it to use a cookie that points to a transparent SID on my system. I've got the following options in my php.ini, but the s

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

[PHP] session/cookies

2002-02-28 Thread Vlad Kulchitski
Hi again, I am doing a simple example of cookies and my server seems to get frozen. Basically, what I do is: file01.php: file02.php What ends up happening when I go to the second file is the server just opens the file forever never showing the content, and ends up giving me an error messag

[PHP] session cookies not destroyed

2001-07-24 Thread Brad Wright
Hi all, I was wondering if anyone has had any problems with sessions and IE 5.0 (mac). As I (limitedly) understand it, the session cookie (kept by IE) should be destroyed when I quit IE. It should, therefor, not be there when I restart IE. HOWEVER.. I seem to get very unpredictable behaviour in

[PHP] Session, cookies not allowed, ssl

2001-03-02 Thread Carola Meyberg
Hello everybody, I am fairly new to php and have the following problem: I wrote an application that uses sessionhandling. I will enclose parts of the code below. It runs fine under Netscape 4.74, or Explorer 5 and also under other Browsers. Problems arise under Netscape 4.6 when cookies are not

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

[PHP] Session cookies appearing where there is no session

2001-01-15 Thread CC Zona
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_* functions and where there were also no previous visits to pages with such calls. Where is the setting that is in