OK, so first testing says that <session-config> <session-timeout>10</session-timeout> </session-config>
does the trick - for some strange reason winstone appears to cut sessions really short Cheers, Tim On 3 Oct 2009, at 01:30, Timothy Perrett wrote: > This explains why I'm not seeing the issue in dev mode with mvn > jetty:run > > I'm deploying to embedded winstone so it's quite possible the > sessions are being reaped by winstone itself. I'll investgate and > report back :-) > > Cheers > > Tim > > Sent from my iPhone > > On 3 Oct 2009, at 00:17, David Pollak > <[email protected]> wrote: > >> Tim, >> >> By default, Lift sessions last as long as the contain keeps >> sessions alive (usually 15-30 minutes). >> >> LiftSession.inactivityLength determines when the session gets timed >> out, unless the container times it out first. >> >> Thanks, >> >> David >> >> On Fri, Oct 2, 2009 at 9:58 AM, Timothy Perrett <[email protected] >> > wrote: >> >> Guys, >> >> Im building an application that works with Twitter OAuth - in order >> to >> do that, i make requests to twitter and get various tokens and hold >> them in a session var. >> >> However, it appears (looking at my logs) that when the user is >> bounced >> out to twitter.com for the authentication the session in my lift app >> is expiring, thus my session vars are then Empty when the user >> returns. >> >> I had a poke in LiftRules, but there appears to be nothing directly >> indicating how to set a session timeout explicitly. Any suggestions >> on >> how I could extend it? (or just stop it expiring straight away) >> >> Cheers, Tim >> >> >> >> >> -- >> Lift, the simply functional web framework http://liftweb.net >> Beginning Scala http://www.apress.com/book/view/1430219890 >> Follow me: http://twitter.com/dpp >> Surf the harmonics >> >> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
