Clear Visit Object

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Clear Visit Object

Patrick Casey
 

            Is there a way for me to null out a visit object if, for
example, a given user logs out of a specific browser? In this case the
session lives on, but the visit is over. I'd rather just null out the visit
object than have to manually reset all the visit properties to logon
defaults, so if there's a quick and easy way to do that, could anyone point
me to it?

 

            Thanks,

 

            --- Pat

Reply | Threaded
Open this post in threaded view
|

Re: Clear Visit Object

Michael Echerer
Patrick Casey wrote:
>  
>
>             Is there a way for me to null out a visit object if, for
> example, a given user logs out of a specific browser? In this case the
> session lives on, but the visit is over. I'd rather just null out the visit
> object than have to manually reset all the visit properties to logon
> defaults, so if there's a quick and easy way to do that, could anyone point
> me to it?
>
The IEngine has a setVisit method... Just set it to null. Moreover you
could grab the HttpSession deep from the
IRequestCycle.getRequestContext() and invalidate the session (and
forward to some page...)
>  
>
>             Thanks,
>
>  
>
>             --- Pat
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]