Re: WO and Search Engines

David Griffith <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Yes I was just thinking a bit more about it.  Like I said, I have  
changed some of the site to use direct actions already.  However I  
have been using session() to basically generate a session right away  
if there is not one already.  This is because the conversion to use  
direct actions had (at the time) more to do with bookmarking than the  
problem I am experiencing now.  Thanks for the tips, I have some  
thoughts now on how to proceed, although I think it is going to be a  
big job to change things.

Regards,
David.

On 15 Mar 2006, at 16:33, Paul Lynch wrote:

>
> On 15 Mar 2006, at 15:26, David Griffith wrote:
>
>> If I was to use direct actions only and create a session when it's  
>> required, what is the best way to access the session once it has  
>> been created?  Would you create a reference to it in the  
>> Application class or something?  What I mean is, how would the  
>> next 'sessionless' direct action page use the session if it  
>> required it?  The point of using Direct Actions presumably being  
>> that it would not have any reference to any session as such.
>
> Use session().  WO will pass the session object around if you need  
> it, including through direct actions.  In fact, getting rid of a  
> session when you don't want it is the hard part :-).
>
> The concept to follow is that direct actions are not inherently  
> sessionless; they just don't require a session to function.
>
> Paul
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.