Re: [Catalyst] Issue with Plugin::Session
Could it be that you are working on localhost:3000 and/or other ports? I recall cases where some browsers don't deal with localhost and/or port numbers correctly. For example, if you have had sessions running on localhost:2999 and localhost:3000, the browser might be ignoring the port and sending cookies for both, so Catalyst might be taking the wrong cookie. Suggest you look at the Set-Cookie and Cookie headers on the wire to work out what's going on. -- Jon Schutz http://notes.jschutz.net On 01/06/2011 02:37 AM, jeff robinson wrote: Hi Having a prblem with Safari and IE browsers and the Session plugin. The app works fine with Firefox, but session data is being reset between requests with these other browsers. Example: DB1 x $c-session 0 HASH(0xac06a3c) '__address' = '10.87.199.12' '__created' = 1294242706 '__updated' = 1294242706 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' After a single request using Safari, its now: DB2 x $c-session 0 HASH(0xad41888) '__address' = '10.87.199.12' '__created' = 1294242721 '__updated' = 1294242721 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' Exact same everything, except using Firefox DB1 x $c-session 0 HASH(0xc2f9b70) '__address' = '10.87.199.12' '__created' = 1294243509 '__updated' = 1294243509 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1' After single request using FF. DB2 x $c-session 0 HASH(0xc2f3d18) '__address' = '10.87.199.12' '__created' = 1294243509 '__updated' = 1294243538 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1' 'user' = HASH(0xc31738c) 'accesscode' = 681430 'companyid' = 'bluestone' 'email' = 'jeffrobin...@bluestonetel.com' 'first' = 'jeff' 'last' = 'robinson' 'roles' = 'admin' 'serverid' = 'cpark-s1-v0' 'shortcompanyid' = 'blue' 'validate' = 'yes' Any ideas?? - J Catalyst 5.80029 | Catalyst::Plugin::ConfigLoader 0.28 | Catalyst::Plugin::Session 0.31 | Catalyst::Plugin::Session::State::Cookie 0.17 | Catalyst::Plugin::Session::Store::File 0.18 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Issue with Plugin::Session
On Wed, Jan 5, 2011 at 11:07 AM, jeff robinson jeffreyianrobin...@gmail.com wrote: Hi Having a prblem with Safari and IE browsers and the Session plugin. The app works fine with Firefox, but session data is being reset between requests with these other browsers. Example: DB1 x $c-session 0 HASH(0xac06a3c) '__address' = '10.87.199.12' '__created' = 1294242706 '__updated' = 1294242706 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' After a single request using Safari, its now: DB2 x $c-session 0 HASH(0xad41888) '__address' = '10.87.199.12' '__created' = 1294242721 '__updated' = 1294242721 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' Does the second and third request keep the same cookie on safari? can you see the cookie set properly on safari's cookie browser? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Issue with Plugin::Session
Now we are starting to get somewhere. At Wade's suggestion I checked the cookies as received by the various browsers. FF as expected receives the cookie just fine. Safari does not. To double check I cleared all the cookies from the Safari (ver 4.1.3) browser, re-ran the test and nothing - no cookie saved. So that's seems to be the issue with that browser. I am working on the others and will provide some feedback soon. Thanks for help - J On Thu, Jan 6, 2011 at 12:24 PM, Wade Stuart w...@grepit.net wrote: On Wed, Jan 5, 2011 at 11:07 AM, jeff robinson jeffreyianrobin...@gmail.com wrote: Hi Having a prblem with Safari and IE browsers and the Session plugin. The app works fine with Firefox, but session data is being reset between requests with these other browsers. Example: DB1 x $c-session 0 HASH(0xac06a3c) '__address' = '10.87.199.12' '__created' = 1294242706 '__updated' = 1294242706 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' After a single request using Safari, its now: DB2 x $c-session 0 HASH(0xad41888) '__address' = '10.87.199.12' '__created' = 1294242721 '__updated' = 1294242721 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' Does the second and third request keep the same cookie on safari? can you see the cookie set properly on safari's cookie browser? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Issue with Plugin::Session
OK, finished testing with this and in the end the only browser that had issues was Safari - the others tested ( IE, Chrome and Opera) were fine, the problems I was having were related to the varied returns that the input type=image .. tag produces. Back on Safari - as distributed with the User Pref Accept Cookies set to Only from sites I visit - the cookies from Session are rejected - they obviously should not be. If the setting for Accept Cookies is changed to Always then Session works with Safari. Thanks again for the help - J On Thu, Jan 6, 2011 at 2:53 PM, jeff robinson jeffreyianrobin...@gmail.com wrote: Now we are starting to get somewhere. At Wade's suggestion I checked the cookies as received by the various browsers. FF as expected receives the cookie just fine. Safari does not. To double check I cleared all the cookies from the Safari (ver 4.1.3) browser, re-ran the test and nothing - no cookie saved. So that's seems to be the issue with that browser. I am working on the others and will provide some feedback soon. Thanks for help - J On Thu, Jan 6, 2011 at 12:24 PM, Wade Stuart w...@grepit.net wrote: On Wed, Jan 5, 2011 at 11:07 AM, jeff robinson jeffreyianrobin...@gmail.com wrote: Hi Having a prblem with Safari and IE browsers and the Session plugin. The app works fine with Firefox, but session data is being reset between requests with these other browsers. Example: DB1 x $c-session 0 HASH(0xac06a3c) '__address' = '10.87.199.12' '__created' = 1294242706 '__updated' = 1294242706 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' After a single request using Safari, its now: DB2 x $c-session 0 HASH(0xad41888) '__address' = '10.87.199.12' '__created' = 1294242721 '__updated' = 1294242721 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' Does the second and third request keep the same cookie on safari? can you see the cookie set properly on safari's cookie browser? ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Issue with Plugin::Session
Hi Having a prblem with Safari and IE browsers and the Session plugin. The app works fine with Firefox, but session data is being reset between requests with these other browsers. Example: DB1 x $c-session 0 HASH(0xac06a3c) '__address' = '10.87.199.12' '__created' = 1294242706 '__updated' = 1294242706 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' After a single request using Safari, its now: DB2 x $c-session 0 HASH(0xad41888) '__address' = '10.87.199.12' '__created' = 1294242721 '__updated' = 1294242721 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/4.1.3 Safari/533.19.4' Exact same everything, except using Firefox DB1 x $c-session 0 HASH(0xc2f9b70) '__address' = '10.87.199.12' '__created' = 1294243509 '__updated' = 1294243509 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1' After single request using FF. DB2 x $c-session 0 HASH(0xc2f3d18) '__address' = '10.87.199.12' '__created' = 1294243509 '__updated' = 1294243538 '__user_agent' = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 GTB7.1' 'user' = HASH(0xc31738c) 'accesscode' = 681430 'companyid' = 'bluestone' 'email' = 'jeffrobin...@bluestonetel.com' 'first' = 'jeff' 'last' = 'robinson' 'roles' = 'admin' 'serverid' = 'cpark-s1-v0' 'shortcompanyid' = 'blue' 'validate' = 'yes' Any ideas?? - J Catalyst 5.80029 | Catalyst::Plugin::ConfigLoader 0.28 | Catalyst::Plugin::Session 0.31 | Catalyst::Plugin::Session::State::Cookie 0.17 | Catalyst::Plugin::Session::Store::File 0.18 ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Issue with Plugin::Session
On 5 Jan 2011, at 16:07, jeff robinson wrote: Hi Having a prblem with Safari and IE browsers and the Session plugin. The app works fine with Firefox, but session data is being reset between requests with these other browsers. Is the time correct on your server and your client? This issue is usually caused by incorrect expiry dates in the cookies issued (due the the server having the wrong time). Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Issue with Plugin::Session
On Wed, 05 Jan 2011, jeff robinson wrote: Tom Time is fine. Its the same client and server computers for both the FF and Safari tests so one would expect this to have been an issue with FF as well, but is not - J But their reaction to inconsistent times in cookies apparently differ. On Wed, Jan 5, 2011 at 2:36 PM, Tomas Doran bobtf...@bobtfish.net wrote: On 5 Jan 2011, at 16:07, jeff robinson wrote: Hi Having a prblem with Safari and IE browsers and the Session plugin. The app works fine with Firefox, but session data is being reset between requests with these other browsers. Is the time correct on your server and your client? This issue is usually caused by incorrect expiry dates in the cookies issued (due the the server having the wrong time). Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/