• 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
WOCookie & Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOCookie & Safari


  • Subject: WOCookie & Safari
  • From: Michael Kondratov <email@hidden>
  • Date: Mon, 3 Mar 2008 13:39:05 -0500

For some unknown reason safari no longer properly parses my cookie generated by WOCookie.
The cookies always expire when browser closes. When I look at safari's properties, my cookies have no expiration dates.

My code:

String hostName = ".aspireauctions.com";

String path = "/";

NSTimestamp currentTime = new NSTimestamp();
NSTimestamp expiration = currentTime.timestampByAddingGregorianUnits(1,0,0,0,0,0);
WOCookie bidderIdCookie = null;
try {
cookieValueBidderID = URLEncoder.encode(bidderId.toString(),"UTF-8");
cookieValuePassword = URLEncoder.encode(password,"UTF-8");
}
catch(Exception e) {
System.out.println("Error encoding vookie");
System.out.println(e.toString());
}
// create cookie
try {
bidderIdCookie = new WOCookie("bidderid",cookieValueBidderID, path, hostName, expiration, false);
//bidderIdCookie.setTimeOut(timeout);
bidderPasswordCookie = new WOCookie("bidderpassword", cookieValuePassword, path, hostName, expiration, false);
//bidderPasswordCookie.setTimeOut(timeout);
}
catch(Exception e) {
System.out.println("Error creading bidder cookies");
System.out.println(e.toString());
}

if( (bidderIdCookie != null) && (bidderPasswordCookie != null) ) {

System.out.println(bidderIdCookie.headerString());

context().response().addCookie(bidderIdCookie);

context().response().addCookie(bidderPasswordCookie);
}


bidderid=111; version="1"; expires=Tue, 03-Mar-2009 06:25:04 GMT+00:00; path=/

Michael
Aspire Auctions
216-231-5515
 _______________________________________________
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

  • Follow-Ups:
    • Re: WOCookie & Safari
      • From: Chuck Hill <email@hidden>
  • Prev by Date: [OT] Just a thought...
  • Next by Date: Re: WOCookie & Safari
  • Previous by thread: Re: [OT] Just a thought...
  • Next by thread: Re: WOCookie & Safari
  • Index(es):
    • Date
    • Thread