Home » Developer & Programmer » Forms » Restricting User Sessions
Restricting User Sessions [message #140888] Thu, 06 October 2005 01:03 Go to next message
sarfraz_attari
Messages: 123
Registered: July 2005
Senior Member
Hi
Is there any way to Restrict a user to open multiple session through form.
and in case user opens multiple session how can we kill the idle session.

Thanks

Sarfraz
Re: Restricting User Sessions [message #140891 is a reply to message #140888] Thu, 06 October 2005 01:28 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
What version of forms and database are you running and on which operating systems? Client-Server or 3-tier?

David
Re: Restricting User Sessions [message #140901 is a reply to message #140891] Thu, 06 October 2005 01:56 Go to previous messageGo to next message
sarfraz_attari
Messages: 123
Registered: July 2005
Senior Member
Hi
We are using Forms 6 Client Server Architecture
We are using Oracle 9i
Our Server Operating System is Linux
and Clients are using Windows2000/XP

Thanks

Sarfraz

[Updated on: Thu, 06 October 2005 02:00]

Report message to a moderator

Re: Restricting User Sessions [message #140902 is a reply to message #140901] Thu, 06 October 2005 02:07 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Killing idle sessions has two main problems - what is an idle session and how to kill it. I have looked into these problems at another place and we gave up on trying to define 'idle' and also on 'killing'. Do we kill the 'lowest' or 'highest' number session? We ended up with too many orphan processors in the application server and often killed the session that the user 'really wanted to keep'.

You could count OSUSER from V$session and in your custom login procedure fail the login in the count is greater than a specific number. Remember that you normally have two AS sessions per working session - one for the JInit and the other the working session. So we set the limit to 4.

You could also increment a counter in a table when the user starts and decrement it when they leave. Unfortuntely, if the session crashes the decrement may not happen and then you have to, somehow, know when to reset the table entry.

David
Previous Topic: ora-12514 error tns: no listener
Next Topic: LOV - select character value, but store numeric offset
Goto Forum:
  


Current Time: Fri Sep 20 01:56:07 CDT 2024