- Q How can you create production order without routing and BoM?
- Q Any five differences between an Abstract Class and Interface in Java?
- Q Who is directly responsible to Parliament for all matters concerning the Defence Services of India?
- Q Explain the functionalities of satellite assembly?
- Q Which Indian state has the largest number of seats reserved for Scheduled Tribes in the Lok Sabha?
- Q What is interface ?
- Q How do you find inflorescence in Lepyrodontaceae ?
- Q Which city is known as Forbidden city?
- Q Which ancient sage is called father of “Sanskrit”?
- Q The rivers of Narmada, Tapti, Mahi & Sabarmati drains into which gulf?
- Q For the following, find the next term in the series 6, 24, 60,120, 210 a) 336 b) 366 c) 330 d) 660
Question
How do I access all active sessions on the server?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Answers
You can't access one user's session from another session (even if you are physically at the machine). However, you
can follow our cart example to some extent, and store all the session data in a database. Keep a column called
'active' which indicates whether the user is still there. When the user logs out (or after a specified time period,
which you can schedule using a job in SQL Server), you turn the active flag to off. Passing a single integer session
variable around, and querying the database when you need to, is much more efficient and scalable than storing all
those values in session variables anyway (even if you need all the values on every single page!). I just finished reworking
a very major application to handle things this way (partly for performance, and partly because the session
variables were becoming unruly and unpredictable).
Remember, don't use sessionID as a key, and expect to uniquely track users (see Article #2085 for more info).
If you're interested simply in counting the number of active sessions on the server, see Article #2491.
Your Comment
can follow our cart example to some extent, and store all the session data in a database. Keep a column called
'active' which indicates whether the user is still there. When the user logs out (or after a specified time period,
which you can schedule using a job in SQL Server), you turn the active flag to off. Passing a single integer session
variable around, and querying the database when you need to, is much more efficient and scalable than storing all
those values in session variables anyway (even if you need all the values on every single page!). I just finished reworking
a very major application to handle things this way (partly for performance, and partly because the session
variables were becoming unruly and unpredictable).
Remember, don't use sessionID as a key, and expect to uniquely track users (see Article #2085 for more info).
If you're interested simply in counting the number of active sessions on the server, see Article #2491.
Your Comment
- 0
- 0
- New Answer
- Contributors: *,
More Software Questions..
What is the inputsplit in map reduce software?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is software configuration management?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What Is Java Api For Xml-based Rpc (jax-rpc)?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How can you implement fine-grained auditing?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is IBM’s simple explanation for Big Data’s four critical features?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is static synchronized method in JDBC API? Give an example?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What does the NULLIF function do?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What happens if a start method is not invoked and the run method is directly invoked?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Should we override finalize method
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
what is the difference between mysql_fetch_array and mysql_fetch_object?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How will XML affect my document links?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Why to use Style Sheets?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are Filters in MVC?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Can you explain Application layer in OSI model?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
How to define new testplan attributes?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
Which oracle package is used to manage the oracle lock management services?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What is marker interface?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,
What types of partitioning are there for BW?
- 0
- 0 |
- |
- Post Answer |
- Answers ( 1 )
- Tags: Software,