Re: WOSession and setStoresIDsInCookies method
Re: WOSession and setStoresIDsInCookies method
- Subject: Re: WOSession and setStoresIDsInCookies method
- From: Helge Staedtler <email@hidden>
- Date: Wed, 30 Nov 2005 11:21:51 +0100
I always use the simple way of wrapping a frame around the application which
loads the webobjects-urls inside of it.
this way users always have a valid url to bookmark. only in apps with
direct-actions as default-startup-situation I leave away the frame.
you can also popup a modal window via javascript, that way people do not see
any url at all AND whats even better they do not have any backbutton any
more. ;-)
using rewrites you can shorten the url cutting down the base-url i think,
but you will still have the "number.number.number" following the base-url
because thats how webobjects stores the state.
if there does exist something to eliminate even this part of the url through
cookies and rewrites I would be interested in it, too.
regards,
helge
Am 30.11.2005 10:00 Uhr schrieb "Peteris Krisjanis" unter
<email@hidden>:
> 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.
> _______________________________________________
> 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
_______________________________________________
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