Re: [PHP] Sessions within new windows
Olinux [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how this could be controlled via IE's settings? I've experienced a similar problem on a php based system I use. I don't know what their code looks like. I think its an IE issue though - windows update always fixes the problem for me. http://windowsupdate.microsoft.com olinux __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
Windows update doesn't fix the problem. I keep my system updated 100% of the time. I no one has mentioned getting it to work on Windows XP. That is what I am using, Windows XP Professional. Maybe the problem is confined to XP. Here is the EXACT IE version that I am using: 6.0.2800.1106.xpsp2.030422-1633 I have a few other machine in the building that have other Versions of M$ Windows on them, I will give those a try and let you know how it goes. -Original Message- From: olinux [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:48 AM To: Pablo Gosse; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how this could be controlled via IE's settings? I've experienced a similar problem on a php based system I use. I don't know what their code looks like. I think its an IE issue though - windows update always fixes the problem for me. http://windowsupdate.microsoft.com olinux __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
On Thursday, November 06, 2003 5:51 AM, Donald wrote: I no one has mentioned getting it to work on Windows XP. That is what I am using, Windows XP Professional. Maybe the problem is confined to XP. Here is the EXACT IE version that I am using: 6.0.2800.1106.xpsp2.030422-1633 Hi Donald. I just tried this in XP Professional on IE 6.0 and it worked fine, both via a javascript function and a standard link with the target set to _blank. Anyone else have any idea why this would be happening? Cheers, Pablo -Original Message- From: olinux [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:48 AM To: Pablo Gosse; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how this could be controlled via IE's settings? I've experienced a similar problem on a php based system I use. I don't know what their code looks like. I think its an IE issue though - windows update always fixes the problem for me. http://windowsupdate.microsoft.com olinux __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
--- Pablo Gosse [EMAIL PROTECTED] wrote: Hi Donald. I just tried this in XP Professional on IE 6.0 and it worked fine, both via a javascript function and a standard link with the target set to _blank. Anyone else have any idea why this would be happening? No, but it would really be nice if anyone that experiences this could capture the HTTP transaction(s) that illustrate the behavior more definitively. Ethereal (http://www.ethereal.com/) can help with this. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
I am downloading ethereal and I will post my findings. -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 2:31 PM To: Pablo Gosse; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows --- Pablo Gosse [EMAIL PROTECTED] wrote: Hi Donald. I just tried this in XP Professional on IE 6.0 and it worked fine, both via a javascript function and a standard link with the target set to _blank. Anyone else have any idea why this would be happening? No, but it would really be nice if anyone that experiences this could capture the HTTP transaction(s) that illustrate the behavior more definitively. Ethereal (http://www.ethereal.com/) can help with this. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
Well that's bizarre. I change it back to opening the new windows so that I can go test it on some other machines, and now it works on this machine!? Makes no sense... -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 2:31 PM To: Pablo Gosse; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows --- Pablo Gosse [EMAIL PROTECTED] wrote: Hi Donald. I just tried this in XP Professional on IE 6.0 and it worked fine, both via a javascript function and a standard link with the target set to _blank. Anyone else have any idea why this would be happening? No, but it would really be nice if anyone that experiences this could capture the HTTP transaction(s) that illustrate the behavior more definitively. Ethereal (http://www.ethereal.com/) can help with this. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
Just a quick update: It seems to only be a problem with Internet Explorer on the PC. Both IE Safari on MacOSX work as expected. -Original Message- From: Donald Tyler [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Sessions within new windows Hi, Not sure if this is a PHP or Browser issue but here is my problem: I have a site that has a members section. In the news area, when a user clicks the link for an article, it pops open a new window a requests the article via a PHP script. What's happening is that when the new window pops up, the script isn't getting the session info properly. I changed it so that the page opens up in the main window instead of a new one and it works fine. I presume this is because the browser is not sending the session ID to the script when opening the new window. Does anyone know of a way for me to fix this without embedding the session ID in the URL? I thought the only criteria that the browser used when deciding if to send a Session ID or not was if the page is located at the same domain name. P.S. Its Internet Explorer 6 I am using. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions within new windows
Donald Tyler wrote: What's happening is that when the new window pops up, the script isn't getting the session info properly. I changed it so that the page opens up in the main window instead of a new one and it works fine. I presume this is because the browser is not sending the session ID to the script when opening the new window. Does anyone know of a way for me to fix this without embedding the session ID in the URL? I thought the only criteria that the browser used when deciding if to send a Session ID or not was if the page is located at the same domain name. P.S. Its Internet Explorer 6 I am using. Do you have another browser you can try it in? Sounds like an IE feature to me. :) There was some discussion regarding this on the list last month. Each browser is different in whether it'll send the same cookies based upon how the new window or browser instance is started... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions within new windows
Are you using _blank as target. Then try a named window. But this is just a wild guess. Donald Tyler wrote: Just a quick update: It seems to only be a problem with Internet Explorer on the PC. Both IE Safari on MacOSX work as expected. -Original Message- From: Donald Tyler [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Sessions within new windows Hi, Not sure if this is a PHP or Browser issue but here is my problem: I have a site that has a members section. In the news area, when a user clicks the link for an article, it pops open a new window a requests the article via a PHP script. What's happening is that when the new window pops up, the script isn't getting the session info properly. I changed it so that the page opens up in the main window instead of a new one and it works fine. I presume this is because the browser is not sending the session ID to the script when opening the new window. Does anyone know of a way for me to fix this without embedding the session ID in the URL? I thought the only criteria that the browser used when deciding if to send a Session ID or not was if the page is located at the same domain name. P.S. Its Internet Explorer 6 I am using. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
Yeah I was. I did try that though and it made no difference =0( -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:40 AM To: Donald Tyler Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Sessions within new windows Are you using _blank as target. Then try a named window. But this is just a wild guess. Donald Tyler wrote: Just a quick update: It seems to only be a problem with Internet Explorer on the PC. Both IE Safari on MacOSX work as expected. -Original Message- From: Donald Tyler [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Sessions within new windows Hi, Not sure if this is a PHP or Browser issue but here is my problem: I have a site that has a members section. In the news area, when a user clicks the link for an article, it pops open a new window a requests the article via a PHP script. What's happening is that when the new window pops up, the script isn't getting the session info properly. I changed it so that the page opens up in the main window instead of a new one and it works fine. I presume this is because the browser is not sending the session ID to the script when opening the new window. Does anyone know of a way for me to fix this without embedding the session ID in the URL? I thought the only criteria that the browser used when deciding if to send a Session ID or not was if the page is located at the same domain name. P.S. Its Internet Explorer 6 I am using. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions within new windows
--- Donald Tyler [EMAIL PROTECTED] wrote: I have a site that has a members section. In the news area, when a user clicks the link for an article, it pops open a new window a requests the article via a PHP script. What's happening is that when the new window pops up, the script isn't getting the session info properly. [snip] P.S. Its Internet Explorer 6 I am using. This is a feature/bug of IE 6. It might be something you can configure somewhere, but I avoid IE like the plague, so I'm not sure about that. Every other browser, to my knowledge, will work properly. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
That's strange, as I've been writing a CMS over the past year which requires the user to have IE 5.5 or newer, and I have no problems with pop-ups accessing session values under IE 6.0. Perhaps it's an issue of how you're invoking the new windows? Are you using a normal link with target=_blank or are you using Javascript to launch the new window? Cheers, Pablo -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:42 AM To: Donald Tyler; [EMAIL PROTECTED] Subject: Re: [PHP] Sessions within new windows --- Donald Tyler [EMAIL PROTECTED] wrote: I have a site that has a members section. In the news area, when a user clicks the link for an article, it pops open a new window a requests the article via a PHP script. What's happening is that when the new window pops up, the script isn't getting the session info properly. [snip] P.S. Its Internet Explorer 6 I am using. This is a feature/bug of IE 6. It might be something you can configure somewhere, but I avoid IE like the plague, so I'm not sure about that. Every other browser, to my knowledge, will work properly. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
I am using a normal link. Here is the exact html code: a href=View_Article.php?ID={ID} target=_blankimg src=../Images/view.gif width=22 height=22 border=0/a -Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:17 AM To: [EMAIL PROTECTED]; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows That's strange, as I've been writing a CMS over the past year which requires the user to have IE 5.5 or newer, and I have no problems with pop-ups accessing session values under IE 6.0. Perhaps it's an issue of how you're invoking the new windows? Are you using a normal link with target=_blank or are you using Javascript to launch the new window? Cheers, Pablo -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:42 AM To: Donald Tyler; [EMAIL PROTECTED] Subject: Re: [PHP] Sessions within new windows --- Donald Tyler [EMAIL PROTECTED] wrote: I have a site that has a members section. In the news area, when a user clicks the link for an article, it pops open a new window a requests the article via a PHP script. What's happening is that when the new window pops up, the script isn't getting the session info properly. [snip] P.S. Its Internet Explorer 6 I am using. This is a feature/bug of IE 6. It might be something you can configure somewhere, but I avoid IE like the plague, so I'm not sure about that. Every other browser, to my knowledge, will work properly. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
Hmm, that's strange. I use Javascript functions to control the few pop-up windows in the CMS, but I just went in and changed some to standard href tags with the _blank for the target attribute, as you have, and it still works with no problem. If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. I just tested it out on a number of systems around here, both on a Windoze 2000 box and on a RedHat box using a Terminal Services connection, and it worked fine for me. Does anyone have any ideas how this could be controlled via IE's settings? Cheers, Pablo -Original Message- From: Donald Tyler [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:48 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows I am using a normal link. Here is the exact html code: a href=View_Article.php?ID={ID} target=_blankimg src=../Images/view.gif width=22 height=22 border=0/a -Original Message- From: Pablo Gosse [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:17 AM To: [EMAIL PROTECTED]; Donald Tyler; [EMAIL PROTECTED] Subject: RE: [PHP] Sessions within new windows That's strange, as I've been writing a CMS over the past year which requires the user to have IE 5.5 or newer, and I have no problems with pop-ups accessing session values under IE 6.0. Perhaps it's an issue of how you're invoking the new windows? Are you using a normal link with target=_blank or are you using Javascript to launch the new window? Cheers, Pablo -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:42 AM To: Donald Tyler; [EMAIL PROTECTED] Subject: Re: [PHP] Sessions within new windows --- Donald Tyler [EMAIL PROTECTED] wrote: I have a site that has a members section. In the news area, when a user clicks the link for an article, it pops open a new window a requests the article via a PHP script. What's happening is that when the new window pops up, the script isn't getting the session info properly. [snip] P.S. Its Internet Explorer 6 I am using. This is a feature/bug of IE 6. It might be something you can configure somewhere, but I avoid IE like the plague, so I'm not sure about that. Every other browser, to my knowledge, will work properly. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
--- Pablo Gosse [EMAIL PROTECTED] wrote: If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. I have no first-hand experience with this, since I don't use Windows (and I use Safari when I use Macs). But, there was a discussion on the list a week or two ago about this same thing, and someone did some testing to find that IE did not send session cookies upon a new instance. I was under the impression that this was somehow configurable, but that the default behavior in IE 6 was to consider each separate instance to be using a different pool for session cookies. Does anyone have any ideas how this could be controlled via IE's settings? I would also be interested in this, as well as some sort of confirmation of this behavior. It could be that the person who described this behavior was wrong. :-) Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
On Wednesday, November 05, 2003 12:38 PM, Chris wrote: I would also be interested in this, as well as some sort of confirmation of this behavior. It could be that the person who described this behavior was wrong. :-) I think Chris is correct in thinking that the person who started the previous thread on this subject described the behavior incorrectly. I've been developing web applications with PHP/PostgreSQL for a few years now, and I've never been able to duplicate the behaviors described in the original thread. From my experience over the past few years, here's how IE works with sessions and new windows. If you open a web application in Internet Explorer and a session is activated, opening a new window either via a JavaScript link, an href with the target attribute set to _blank or by hitting ctrl-n will cause the new window to inherit the session of the opener. However, if you have a window open in which a session is activated and you open a new IE window via a desktop shortcut (basically create a separate instance of the browser) this window will NOT inherit the session of the already active window. I tried to replicate the behaviors described in the previous thread with IE 5.5 and 6.0 running on Win2K boxes and on Linux boxes connected via TSS, and was unsuccessful. Anyone else have any ideas as to why this would be happening? It seems a very strange behavior to me. Cheers, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
Pablo Gosse mailto:[EMAIL PROTECTED] on Wednesday, November 05, 2003 3:08 PM said: From my experience over the past few years, here's how IE works with sessions and new windows. [snip Pablo's experience] Your description is the way I understand it. Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Sessions within new windows
If, as Chris wrote, this is indeed a feature/bug of IE, then it must be configurable somewhere, though I'm lost as to where that might be. Does anyone have any ideas how this could be controlled via IE's settings? I've experienced a similar problem on a php based system I use. I don't know what their code looks like. I think its an IE issue though - windows update always fixes the problem for me. http://windowsupdate.microsoft.com olinux __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php