I did this using apache commons HttpClient.
- I first fetch the login page
- Then I exctract the post URL and field names
- Finally I perform a simple post request to log in

Your direct action solution seems to be better :o)

Chuck Hill a écrit :

On Jun 27, 2007, at 7:40 AM, Frederic JECKER wrote:

Hi all,

I've created a small app that logs on the WOStat page of each instance of our app in order to extract data for reporting.
This works fine but the problem is that each time the app logs in, a new session is created.
Is there a way (maybe through a http parameter) to properly disconnect and drop the session ?

How are you doing this?  If it can log in, can it not log out too?

Personally, I would write a direct action that return the WOApplication.application().statisticsStore().statistics() and deal with the dictionary rather than with HTML.  No need to create a session for that.


Chuck


--

Logo GIP Symaris Frédéric JECKER
GIP [EMAIL PROTECTED]
Pavillon 1
27 rue du 4ème RSM B.P. 29
F-68250  ROUFFACH
Tél : +33 (0)3 89 79 02 21
Fax : +33 (0)3 89 78 79 00
Courriel : [EMAIL PROTECTED]
Web : http://www.symaris.com

PFaites un geste pour l'environnement - avez vous réellement besoin d'imprimer ce courriel ?
PPlease consider the environment - do you really need to print this email ?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to