takeValuesFromRequest() on session creation
takeValuesFromRequest() on session creation
- Subject: takeValuesFromRequest() on session creation
- From: Mac Developer <email@hidden>
- Date: Thu, 22 Jan 2004 12:06:04 -0800
Hi Everybody,
Happy new year and thanks for a great place to learn WO. I am new to
WO (learning it for about 9 month now), and I am running into a
problem. I've checked all the WO websites, documentation and books for
about 2 days now. So here I am seeking help from all you WO gurus.
In my app, I am using mostly DirectAction, but I also want to use
sessions to store stuff for each user. What I am trying to accomplish
is to read a cookie from the user's browser when a session is created
(which is whenever a user hits any page of the site since each page
refers to a session variable.)
I first tried to add a takeValuesFromRequest() in my Session.java file.
But it seems like the takeValuesFromRequest() doesn't get called when
the page is using directActionRequestHandler. Then I added the
takeValuesFromRequest() in Application.java which didn't get called
either. I also tried adding it to individual page and that didn't help
either. But if I add a form and click on the submit button, then the
takeValuesFromRequest() gets called.
So am I doing something wrong that the takeValuesFromRequest() is not
getting called in each Request-Response loop? Specifically, how does
one go about reading cookie from the browser when the user first hit
the app? I know this can be done since every time I visit the Apple
store, it knows my name already without me filling out a form or
hitting any submit button.
Any hint or pointer is greatly appreciated. Thank you.
Nick Yang
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.