• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Disconnecting from WOStats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disconnecting from WOStats


  • Subject: Re: Disconnecting from WOStats
  • From: Frederic JECKER <email@hidden>
  • Date: Thu, 28 Jun 2007 08:08:45 +0200

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 Sym@ris
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@hidden
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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Missing WORealEstate database for WebObjects tutorial (From: Philippe Duvivier <email@hidden>)
 >Re: Missing WORealEstate database for WebObjects tutorial (From: Robert Walker <email@hidden>)
 >Disconnecting from WOStats (From: Frederic JECKER <email@hidden>)
 >Re: Disconnecting from WOStats (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Missing EOModeler component in WOLips?
  • Next by Date: Re: Java Client : who is using it ? What kind of organisation ?
  • Previous by thread: Re: Disconnecting from WOStats
  • Next by thread: Missing EOModeler component in WOLips?
  • Index(es):
    • Date
    • Thread