Re: WOSession and setStoresIDsInCookies method
Re: WOSession and setStoresIDsInCookies method
- Subject: Re: WOSession and setStoresIDsInCookies method
- From: Arturo Perez <email@hidden>
- Date: Wed, 30 Nov 2005 11:34:01 -0500
Peteris Krisjanis wrote:
I want to store session and instance IDs in cookies, so I add two
methods in my Session.java:
setStoresIDsInCookies(true);
setStoresIDsInURLs(false);
And I can browse my app without seeing rather large session ID. And
for example, my URL
looks like that:
http://dev-peteris.local:59359/cgi-bin/WebObjects/johaidi_server.woa/
wo/0.20.0
However, when I clean up url and go to
http://dev-peteris.local:59359/cgi-bin/WebObjects/ johaidi_server.woa/,
session seems to be vanished.
What I should do that session id is left stored in cookies and I can
still manipulate with URL?
Also is there any useful references (posts, emails) for "hiding"
WebObjects url and creating good one? How url_rewrite works
with WebObjects sessions, etc?
Already thanks for any answers,
Peter.
Cookie storage is dependent upon the path and domain of the site serving
the cookie. If you can turn on cookie-prompting so you can see cookies
as they are set then you'll be able to confirm that the cookie has the
right path and domain.
Turn turn on cookie prompting
Firefox: Tools->Options->Privacy->Cookies->Keep Cookies (set to ask
every time).
IE: Tools->Internet Options->Privacy->Settings->Advanced
Override cookie handling set first party cookies to prompt and set third
party cookies to prompt.
When the prompt comes up check the details of the cookie.
-arturo
_______________________________________________
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