Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOSession and setStoresIDsInCookies method



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:
> http://lists.apple.com/mailman/options/webobjects-dev/email@hidden
> 
> 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:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden

References: 
 >WOSession and setStoresIDsInCookies method (From: Peteris Krisjanis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.