Obtaining user's session from Executor class

View: New views
2 Messages — Rating Filter:   Alert me  

Obtaining user's session from Executor class

by heapifyman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello all.

I have a little web application in which users can lock certain data
resources for their own use while they are active on the web
application.
Now I'd like to release these locks as soon as a user's session
expires in case a user didn't log out properly or something.
I was thinking about using the scheduler functionality coming with
rife for this. So, is their a way to get a user's session
information
from an executor class by using the user's login name? If there is,
I'd appreciate a link to an example or some documentation on this.
Or
is there some other best practice way of achieving this?

Kind regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Obtaining user's session from Executor class

by Chris - Stirling :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

If you're using db authentication you can get session info from the database - have a look at the authentication table in the database schema on this page:  http://rifers.org/wiki/display/RIFE/GuideDatabaseUsers

But I don't know how you would track session expiry - the scheduler would have to know when the user last touched a page in order to work out which sessions were dead.

Hope this helps

Chris

On Thu, Jul 31, 2008 at 10:48 AM, heapifyman <heapifyman@...> wrote:

Hello all.

I have a little web application in which users can lock certain data
resources for their own use while they are active on the web
application.
Now I'd like to release these locks as soon as a user's session
expires in case a user didn't log out properly or something.
I was thinking about using the scheduler functionality coming with
rife for this. So, is their a way to get a user's session
information
from an executor class by using the user's login name? If there is,
I'd appreciate a link to an example or some documentation on this.
Or
is there some other best practice way of achieving this?

Kind regards



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 
 
 
Google
rifers.org web