RE: [Catalyst] Session problems with IE and cookies - workaround

2007-03-30 Thread Marc Logghe
Hey Dmitry !
Calling $c-reset_session_expires did the trick indeed ! Now
authentication works both for IE and Opera.
Thanks a million.
Regards,
Marc 
 

 -Original Message-
 From: Dmitry [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 29, 2007 5:51 PM
 To: catalyst@lists.rawmode.org
 Subject: Re: [Catalyst] Session problems with IE and cookies 
 - workaround
 
  VT My workaround will:
  VT 1) Delete the old session
  VT 2) Create a new session
  VT 3) Return a dummy page, along with a new cookie and a 
 redirect to  VT site's main page There is easier workaround 
 - just call $c-reset_session_expires on login.
 Why nor reset_session_expires neither extend_session_expires 
 are not documented if they are public?
 
 
 ___
 List: Catalyst@lists.rawmode.org
 Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
 Searchable archive: 
 http://www.mail-archive.com/catalyst@lists.rawmode.org/
 Dev site: http://dev.catalyst.perl.org/
 
 

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Session problems with IE and cookies - workaround

2007-03-29 Thread Dmitry

VT My workaround will:
VT 1) Delete the old session
VT 2) Create a new session
VT 3) Return a dummy page, along with a new cookie and a redirect to
VT site's main page
There is easier workaround - just call $c-reset_session_expires on login.
Why nor reset_session_expires neither extend_session_expires are not 
documented

if they are public?


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Session problems with IE and cookies

2007-03-05 Thread David Morel


Le 2 Mar 2007 à 02:15, Kieren Diment a écrit :


On 02/03/07, Dylan Vanderhoof [EMAIL PROTECTED] wrote:
I'm not really sure how to write a test case for something that  
only fails using IE (as best I can tell).


Any suggestions?


That's why I suggested HTTP::Recorder.  Then convert the recording  
to a Test::WWW::Mechanize[::Catalyst] script.


However, as I noted, HTTP::Recorder is a bit buggy and so it might  
not work :(


And even if it does, it might turn out to be a heisenbug :-((



Test::WWW::Selenium is your friend. I setup some front-end tests with  
it, using the Firefox plugin to quickly have a working skeleton then  
looping over this using Test::LectroTest, and I found it very easy to  
run, and incredibly powerful. Much easier than writing T:W:Mechanize  
based tests, all the more so as I never could have Recorder DWIM :)  
You have to use the selenium rc, but the setup is far from complex.


David Morel





PGP.sig
Description: Ceci est une signature électronique PGP
___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


RE: [Catalyst] Session problems with IE and cookies

2007-03-01 Thread Dylan Vanderhoof
I'm not really sure how to write a test case for something that only
fails using IE (as best I can tell). 
 
Any suggestions?
 
-D
 
  -Original Message-
From: Kieren Diment [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 01, 2007 1:39 AM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Session problems with IE and cookies



Can someone with access to the problem platform rig up a minimal
app and a failing test case please.

Not that I'm volunteering to fix it or anything, it's just
that's the best way to get it fixed.

http://www.catalystframework.org/calendar/2006/7 should point
you in the right direction though.

On another vein of thought I wonder if HTTP::Recorder would
illuminate the problem at all.  It's a bit buggy though so that would be
a bit of a long shot. 




___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Session problems with IE and cookies

2007-02-28 Thread Thomas Hartman

Don't really understand the root of the problem, but I asked about
this on #Catalyst and was told of a workaround, and saved it to my
.bashrc hints.

If I recall correctly, the consensus is that this is an IE6 bug.

[EMAIL PROTECTED]:~ thartman_catalyst_IE6_response_redirect_prob_hint
try myapp_server.pl with -f -k flags
[EMAIL PROTECTED]:~

hope this helps, thomas.

On 2/27/07, Dylan Vanderhoof [EMAIL PROTECTED] wrote:

I'm seeing an issue where if IE is holding a cookie when a session
expires (expires set to 7200, cookie_expires set to 0), the user can't
login.  Login authenticates successfully, but redirects back to the
login page.  (Session is expired and not being deleted correctly)

This does not happen with Firefox, which appears to actually delete the
session correctly.

I noticed the same behavior if the session data (Store::DBIC) was
deleted from the DB before the session expires.

Any ideas what might be causing this and how to fix it?

Thanks,
Dylan

Debug output: (Repeats the last 2 requests until the browser is closed
with a session cookie or the cookie file is deleted with a cookie with
an expiration)

[debug] GET request for / from 209.221.173.66
[debug] Found sessionid cb30ab14db722929594b6ec6e4f35bc28895284f in
cookie
[debug] Deleting session(session expired)
[debug] Redirecting to https://myapp/signin;
[info] Request took 0.084344s (11.856/s)
.+--
-.
| Action | Time
|
++--
-+
| /auto  |
0.057025s |
| /end   |
0.001156s |
'+--
-'

[info] *** Request 1 (0.001/s) [3435] [Tue Feb 27 21:50:43 2007] ***
[debug] GET request for signin from 209.221.173.66
[debug] Path is signin
[debug] Found sessionid cb30ab14db722929594b6ec6e4f35bc28895284f in
cookie
[debug] Deleting session(session expired)
[debug] Rendering template login_welcome.tt
[info] Request took 0.178703s (5.596/s)
.+--
-.
| Action | Time
|
++--
-+
| /auto  |
0.000492s |
| /auth/signin   |
0.083319s |
| /end   |
0.066447s |
|  - NetResponse::View::TT-process |
0.062633s |
'+--
-'

[info] *** Request 2 (0.002/s) [3435] [Tue Feb 27 13:50:50 2007] ***
[debug] Body Parameters are:
.-+-
-.
| Parameter   | Value
|
+-+-
-+
| email   | username |
| password| password   |
'-+-
-'
[debug] POST request for signin from 209.221.173.66
[debug] Path is signin
[debug] Found sessionid cb30ab14db722929594b6ec6e4f35bc28895284f in
cookie
[debug] Deleting session(session expired)
[debug] Found sessionid cb30ab14db722929594b6ec6e4f35bc28895284f in
cookie
[debug] Deleting session(session expired)
[debug] Found sessionid cb30ab14db722929594b6ec6e4f35bc28895284f in
cookie
[debug] Successfully authenticated user '[EMAIL PROTECTED]'.
[debug] Redirecting to https://myapp/signin;

___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/



___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


RE: [Catalyst] Session problems with IE and cookies

2007-02-28 Thread Marc Logghe
 

 -Original Message-
 From: Thomas Hartman [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 28, 2007 12:09 PM
 To: The elegant MVC web framework
 Subject: Re: [Catalyst] Session problems with IE and cookies
 
 Don't really understand the root of the problem, but I asked 
 about this on #Catalyst and was told of a workaround, and 
 saved it to my .bashrc hints.
 
 If I recall correctly, the consensus is that this is an IE6 bug.


Not sure about that. I have exactly the same problem as Dylan. It is not
specific for IE, Opera shows the very same problem.
The user has to manually delete the cookie in order to login again. Not
what you can call user friendly ;-)
It seems that only Firefox is expiring the session cookie in the correct
way. Also, why is it only us 2 having this problem ? Is everybody else
using Firefox only ?
Cheers,
Marc




 
 [EMAIL PROTECTED]:~ thartman_catalyst_IE6_response_redirect_prob_hint
 try myapp_server.pl with -f -k flags
 [EMAIL PROTECTED]:~
 
 hope this helps, thomas.
 
 On 2/27/07, Dylan Vanderhoof [EMAIL PROTECTED] wrote:
  I'm seeing an issue where if IE is holding a cookie when a session 
  expires (expires set to 7200, cookie_expires set to 0), the 
 user can't 
  login.  Login authenticates successfully, but redirects back to the 
  login page.  (Session is expired and not being deleted correctly)
 
  This does not happen with Firefox, which appears to actually delete 
  the session correctly.
 
  I noticed the same behavior if the session data (Store::DBIC) was 
  deleted from the DB before the session expires.
 
  Any ideas what might be causing this and how to fix it?
 
  Thanks,
  Dylan
 
  Debug output: (Repeats the last 2 requests until the 
 browser is closed 
  with a session cookie or the cookie file is deleted with a 
 cookie with 
  an expiration)
 
  [debug] GET request for / from 209.221.173.66
  [debug] Found sessionid 
 cb30ab14db722929594b6ec6e4f35bc28895284f in 
  cookie [debug] Deleting session(session expired) [debug] 
 Redirecting 
  to https://myapp/signin;
  [info] Request took 0.084344s (11.856/s)
  
 .+
  --
  -.
  | Action
  | Time
  |
  
 ++
  ++--
  -+
  | /auto  |
  0.057025s |
  | /end   |
  0.001156s |
  
 '+
  --
  -'
 
  [info] *** Request 1 (0.001/s) [3435] [Tue Feb 27 21:50:43 
 2007] *** 
  [debug] GET request for signin from 209.221.173.66
  [debug] Path is signin
  [debug] Found sessionid 
 cb30ab14db722929594b6ec6e4f35bc28895284f in 
  cookie [debug] Deleting session(session expired) [debug] Rendering 
  template login_welcome.tt
  [info] Request took 0.178703s (5.596/s)
  
 .+
  --
  -.
  | Action
  | Time
  |
  
 ++
  ++--
  -+
  | /auto  |
  0.000492s |
  | /auth/signin   |
  0.083319s |
  | /end   |
  0.066447s |
  |  - NetResponse::View::TT-process |
  0.062633s |
  
 '+
  --
  -'
 
  [info] *** Request 2 (0.002/s) [3435] [Tue Feb 27 13:50:50 
 2007] *** 
  [debug] Body Parameters are:
  
 .-+---
  --
  -.
  | Parameter   | Value
  |
  
 +-+---
  +-+--
  -+
  | email   | username |
  | password| password
|
  
 '-+---
  --
  -'
  [debug] POST request for signin from 209.221.173.66
  [debug] Path is signin
  [debug] Found sessionid 
 cb30ab14db722929594b6ec6e4f35bc28895284f in 
  cookie [debug] Deleting session(session expired) [debug] Found 
  sessionid cb30ab14db722929594b6ec6e4f35bc28895284f in 
 cookie [debug] 
  Deleting session(session expired) [debug] Found sessionid 
  cb30ab14db722929594b6ec6e4f35bc28895284f in cookie [debug] 
  Successfully authenticated user '[EMAIL PROTECTED]'.
  [debug] Redirecting to https://myapp/signin;
 
  ___
  List: Catalyst

Re: [Catalyst] Session problems with IE and cookies

2007-02-28 Thread Jeffrey Ng

we had the exact same problem with ie. but not firefox. people even
wrote tutorial on their own blogs to teach other users how to log on
to our site. we could not find out the source of error. we reworte the
whole thing from scratch. and now we are hearing less complaints. we
couldnt verify if we really have fixed it because the problem happened
randomly. we could never replicate the bug.

On 2/28/07, Marc Logghe [EMAIL PROTECTED] wrote:



 -Original Message-
 From: Thomas Hartman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, February 28, 2007 12:09 PM
 To: The elegant MVC web framework
 Subject: Re: [Catalyst] Session problems with IE and cookies

 Don't really understand the root of the problem, but I asked
 about this on #Catalyst and was told of a workaround, and
 saved it to my .bashrc hints.

 If I recall correctly, the consensus is that this is an IE6 bug.


Not sure about that. I have exactly the same problem as Dylan. It is not
specific for IE, Opera shows the very same problem.
The user has to manually delete the cookie in order to login again. Not
what you can call user friendly ;-)
It seems that only Firefox is expiring the session cookie in the correct
way. Also, why is it only us 2 having this problem ? Is everybody else
using Firefox only ?
Cheers,
Marc





 [EMAIL PROTECTED]:~ thartman_catalyst_IE6_response_redirect_prob_hint
 try myapp_server.pl with -f -k flags
 [EMAIL PROTECTED]:~

 hope this helps, thomas.

 On 2/27/07, Dylan Vanderhoof [EMAIL PROTECTED] wrote:
  I'm seeing an issue where if IE is holding a cookie when a session
  expires (expires set to 7200, cookie_expires set to 0), the
 user can't
  login.  Login authenticates successfully, but redirects back to the
  login page.  (Session is expired and not being deleted correctly)
 
  This does not happen with Firefox, which appears to actually delete
  the session correctly.
 
  I noticed the same behavior if the session data (Store::DBIC) was
  deleted from the DB before the session expires.
 
  Any ideas what might be causing this and how to fix it?
 
  Thanks,
  Dylan
 
  Debug output: (Repeats the last 2 requests until the
 browser is closed
  with a session cookie or the cookie file is deleted with a
 cookie with
  an expiration)
 
  [debug] GET request for / from 209.221.173.66
  [debug] Found sessionid
 cb30ab14db722929594b6ec6e4f35bc28895284f in
  cookie [debug] Deleting session(session expired) [debug]
 Redirecting
  to https://myapp/signin;
  [info] Request took 0.084344s (11.856/s)
 
 .+
  --
  -.
  | Action
  | Time
  |
 
 ++
  ++--
  -+
  | /auto  |
  0.057025s |
  | /end   |
  0.001156s |
 
 '+
  --
  -'
 
  [info] *** Request 1 (0.001/s) [3435] [Tue Feb 27 21:50:43
 2007] ***
  [debug] GET request for signin from 209.221.173.66
  [debug] Path is signin
  [debug] Found sessionid
 cb30ab14db722929594b6ec6e4f35bc28895284f in
  cookie [debug] Deleting session(session expired) [debug] Rendering
  template login_welcome.tt
  [info] Request took 0.178703s (5.596/s)
 
 .+
  --
  -.
  | Action
  | Time
  |
 
 ++
  ++--
  -+
  | /auto  |
  0.000492s |
  | /auth/signin   |
  0.083319s |
  | /end   |
  0.066447s |
  |  - NetResponse::View::TT-process |
  0.062633s |
 
 '+
  --
  -'
 
  [info] *** Request 2 (0.002/s) [3435] [Tue Feb 27 13:50:50
 2007] ***
  [debug] Body Parameters are:
 
 .-+---
  --
  -.
  | Parameter   | Value
  |
 
 +-+---
  +-+--
  -+
  | email   | username |
  | password| password
|
 
 '-+---
  --
  -'
  [debug] POST request for signin from 209.221.173.66
  [debug] Path is signin
  [debug] Found sessionid
 cb30ab14db722929594b6ec6e4f35bc28895284f in
  cookie [debug] Deleting session(session expired) [debug] Found
  sessionid cb30ab14db722929594b6ec6e4f35bc28895284f in
 cookie [debug]
  Deleting session

Re: [Catalyst] Session problems with IE and cookies

2007-02-28 Thread Octavian Rasnita
I have created a site using Catalyst, and I access it with IE, but I can 
login with no issues.
However, 2 customers told me that they can login on the site from one 
location, but they cannot do it from their work place.
I don't know, but it might be the same bug, since after the login, the 
program is making an external redirection, and the cookies are used...


Anyway, if somebody will find what's the problem, please write on the list.

Octavian

- Original Message - 
From: Marc Logghe [EMAIL PROTECTED]

To: Thomas Hartman [EMAIL PROTECTED]
Cc: The elegant MVC web framework catalyst@lists.rawmode.org
Sent: Wednesday, February 28, 2007 3:02 PM
Subject: RE: [Catalyst] Session problems with IE and cookies





-Original Message-
From: Thomas Hartman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 28, 2007 12:09 PM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Session problems with IE and cookies

Don't really understand the root of the problem, but I asked
about this on #Catalyst and was told of a workaround, and
saved it to my .bashrc hints.

If I recall correctly, the consensus is that this is an IE6 bug.



Not sure about that. I have exactly the same problem as Dylan. It is not
specific for IE, Opera shows the very same problem.
The user has to manually delete the cookie in order to login again. Not
what you can call user friendly ;-)
It seems that only Firefox is expiring the session cookie in the correct
way. Also, why is it only us 2 having this problem ? Is everybody else
using Firefox only ?
Cheers,
Marc






[EMAIL PROTECTED]:~ thartman_catalyst_IE6_response_redirect_prob_hint
try myapp_server.pl with -f -k flags
[EMAIL PROTECTED]:~

hope this helps, thomas.

On 2/27/07, Dylan Vanderhoof [EMAIL PROTECTED] wrote:
 I'm seeing an issue where if IE is holding a cookie when a session
 expires (expires set to 7200, cookie_expires set to 0), the
user can't
 login.  Login authenticates successfully, but redirects back to the
 login page.  (Session is expired and not being deleted correctly)

 This does not happen with Firefox, which appears to actually delete
 the session correctly.

 I noticed the same behavior if the session data (Store::DBIC) was
 deleted from the DB before the session expires.

 Any ideas what might be causing this and how to fix it?

 Thanks,
 Dylan

 Debug output: (Repeats the last 2 requests until the
browser is closed
 with a session cookie or the cookie file is deleted with a
cookie with
 an expiration)

 [debug] GET request for / from 209.221.173.66
 [debug] Found sessionid
cb30ab14db722929594b6ec6e4f35bc28895284f in
 cookie [debug] Deleting session(session expired) [debug]
Redirecting
 to https://myapp/signin;
 [info] Request took 0.084344s (11.856/s)

.+
 --
 -.
 | Action
 | Time
 |

++
 ++--
 -+
 | /auto  |
 0.057025s |
 | /end   |
 0.001156s |

'+
 --
 -'

 [info] *** Request 1 (0.001/s) [3435] [Tue Feb 27 21:50:43
2007] ***
 [debug] GET request for signin from 209.221.173.66
 [debug] Path is signin
 [debug] Found sessionid
cb30ab14db722929594b6ec6e4f35bc28895284f in
 cookie [debug] Deleting session(session expired) [debug] Rendering
 template login_welcome.tt
 [info] Request took 0.178703s (5.596/s)

.+
 --
 -.
 | Action
 | Time
 |

++
 ++--
 -+
 | /auto  |
 0.000492s |
 | /auth/signin   |
 0.083319s |
 | /end   |
 0.066447s |
 |  - NetResponse::View::TT-process |
 0.062633s |

'+
 --
 -'

 [info] *** Request 2 (0.002/s) [3435] [Tue Feb 27 13:50:50
2007] ***
 [debug] Body Parameters are:

.-+---
 --
 -.
 | Parameter   | Value
 |

+-+---
 +-+--
 -+
 | email   | username |
 | password| password
   |

'-+---
 --
 -'
 [debug] POST request for signin from 209.221.173.66
 [debug] Path is signin
 [debug] Found sessionid

Re: [Catalyst] Session problems with IE and cookies

2007-02-28 Thread Bill Moseley
On Wed, Feb 28, 2007 at 03:31:39PM +0200, Octavian Rasnita wrote:
 I have created a site using Catalyst, and I access it with IE, but I can 
 login with no issues.
 However, 2 customers told me that they can login on the site from one 
 location, but they cannot do it from their work place.

This sounds different from what the OP commented on (since they are
able to log in), but there is a bug related to SSL and IE that causes
IE to send an empty body:

http://support.microsoft.com/default.aspx?kbid=831167

-- 
Bill Moseley
[EMAIL PROTECTED]


___
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/