You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jon Stevens <jo...@latchkey.com> on 2001/04/11 18:52:43 UTC

Re: Preferred way to store session data

on 4/11/01 8:13 PM, "Jason Grant" <ja...@logular.com> wrote:

> This query relates to my thread in the velocity-user list, which has
> implications for turbine use.
> 
> I've found that I cannot perform "$data.getSession().getId()" in a screen
> because getSession() returns a tomcat subclass of HttpSession which is not
> a public class, and velocity cannot access the getId() method.  Geir has
> suggested the use of wrapper classes that bridges the call to getId().
> 
> This makes me suspect that I should be using some other Turbine value-added
> mechanism for storing/retreiving session data, otherwise this issue would
> be a lot more topical (since everyone would be independently wrapping
> HttpSession methods like getAttribute).  Is there a better way to stash
> data pertaining to a client's session?
> 
> Thanks,
> 
> Jason.

$data.getUser().get/setTemp
$data.getUser().get/setPerm

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org