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

DB<1> 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:
DB<2> 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
DB<1> 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.

DB<2> 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' => 'jeffrobinson@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

Search Discussions

  • Tomas Doran at Jan 5, 2011 at 7:35 pm

    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
  • Jeff robinson at Jan 5, 2011 at 8:04 pm
    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
    On Wed, Jan 5, 2011 at 2:36 PM, Tomas Doran 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/
  • Greg Matheson at Jan 6, 2011 at 6:32 am

    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 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/
  • Jeff robinson at Jan 6, 2011 at 10:47 am
    Some more info on the problem. FF is only browser that works, I have
    tried Safari, IE and Opera and they all produce the same effect. In
    the test each of these browsers is run from the same client, I now
    also check the time is the same (within a second or two) on both the
    client and the server. The results are the same regardless of the
    client ( I tried 3 separate clients), with FF everything works fine,
    with the other browsers the session is reset between requests.
    FYI -- J
    On Thu, Jan 6, 2011 at 1:32 AM, Greg Matheson wrote:
    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 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/
  • Jon Schutz at Jan 6, 2011 at 11:48 am
    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:

    DB<1> 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:
    DB<2> 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
    DB<1> 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.

    DB<2> 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' => 'jeffrobinson@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/
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110106/0d7dc9d3/attachment.htm
  • Wade Stuart at Jan 6, 2011 at 5:24 pm

    On Wed, Jan 5, 2011 at 11:07 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:

    ?DB<1> 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:
    ?DB<2> 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?
  • Jeff robinson at Jan 6, 2011 at 7:53 pm
    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 wrote:
    On Wed, Jan 5, 2011 at 11:07 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:

    ?DB<1> 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:
    ?DB<2> 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/
  • Jeff robinson at Jan 6, 2011 at 10:42 pm
    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
    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 wrote:
    On Wed, Jan 5, 2011 at 11:07 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:

    ?DB<1> 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:
    ?DB<2> 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/
  • Related Discussions

    Discussion Navigation
    viewthread | post
    Discussion Overview
    groupcatalyst @
    categoriescatalyst, perl
    postedJan 5, '11 at 4:07p
    activeJan 6, '11 at 10:42p
    posts9
    users5
    websitecatalystframework.org
    irc#catalyst

    People

    Translate

    site design / logo © 2022 Grokbase