opensubscriber
   Find in this group all groups
 
Unknown more information…

j : jwebunit-users@lists.sourceforge.net 27 August 2009 • 11:34PM -0400

[JWebUnit-users] tests fail with session_regenerate_id
by Jack Pham

REPLY TO AUTHOR
 
REPLY TO GROUP






I had JWebUnit2.1 and tests that were working fine.  After about a week
or so, without

changing anything, the tests started breaking.  I finally traced the
problem to session_regenerate_id()

in the php application.  The tests weren't catching the regenerated
session id that was set,

so the application couldn't find the session data through the tests.
Obviously, manually running

through the application worked fine.  Finally I upgraded to 2.2 and the
tests started passing

again.  Unfortunately, I needed to upgrade my PHP (which was using
5.2.2) to 5.2.4.

The tests started breaking again.  Once again, commenting out the
session_regenerate_id()

call allowed the tests to pass.

So what is it in JWebUnit that's not catching the correct id?

I'm using OS X 10.4.11

Through JWebUnit, I fill out the form then use submit() (so I'm not
using beginAt() or anything

to load another page that might miss the session).  Once the form is
submitted, an intermediate

php file processes the form (this is where the session_regenerate_id()
occurs) which then sends

the user to another php file that checks for the new session id before
continuing.
GET THE WHOLE STORY
Criminal - Credit - Driving - Education - Employment - Drug - Assessments

http://www.infomart-usa.com
Ask about how we can automate your screening program!


The information contained in this email is privileged, confidential and protected by disclosure.  If you think that you have received this email message in error, please REPLY with "RECEIVED IN ERROR" in the Subject Box.  We apologize for any inconvenience and thank you for your time.


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.