473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Query for active SessionID

I need to provide a feature which will control access to data within my ASP.Net application. This is an age old problem of locking for edit. While there are many possible ways to solve this, in this case I wish to write the SessionID to a user table in SQL Server, along with the editing user's name. As long as the session is active, all other users will be allowed read access to this data. Once the editing user exits the edit, this record will be cleared to allow the next edit. This is fine if we exit gracefully. However, if the session is lost for whatever reason, this record must be cleared. The app timeout length can vary, and I do not wish to depnd on it

What I would like to do is this: User A acquires lock, SessionID is written to the lock table. User B attempts an edit, A's lock is seen. In order to validate that A is still active, I wish to ask ASP if the SessionID is still active. Is there an API call that I can use to perform this, even something from an obscure library, such as a debug API
Nov 18 '05 #1
2 1482
You really need a fat-client solution if this functionality MUST be implemented just so.
Nov 18 '05 #2
This cannot be a fat-client solution. My app calls a WebService that could read the database records and should be able to make an API call I believe?
Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lepa | last post by:
I'm trying to run this query and I think I know where the problem is: ------------ in select (SUM(C.Score * C.Weight) / SUM(C.Weight * C.MaxScore)*100) AS SC ...... HAVING ((SUM(C.Score *...
1
by: yaroni | last post by:
Hi all, I have the following tables: A1 == HostID Name RunID ------ ---- ----- 1 host1 NULL 2 host2 1 3 host3 NULL
0
by: Roger Stavcode | last post by:
Is it possible to point current context's session to another active session based on a SessionID? Thank you STAVCOQ
7
by: Christina N | last post by:
I want to output a list of all active SessionID's and their last time of activity. Can I loop through the active sessions and create a list like that? I use ASP.Net (VB.Net) Best regards,...
0
by: Andre | last post by:
Hi, I'm using a PCOMM AutSess instantiated class to establish a session with an IBM host (S/390) from within an Excel spreadsheet using: session.SetConnectionByName Not sure how long this...
9
by: Laurent Bugnion | last post by:
Hi, I am wondering what is the best way to find out which ASP.NET sessions are still active. Here is the reason: I have a custom control which can upload files. It saves the files in a folder...
0
by: XML newbie: Urgent pls help! | last post by:
I am using VB.Net. My program is to connect to a remote IPAddress. Once, it verifies the login information it should display the SessionID and enable some button . I appreciate your help and thanku...
23
by: mlcampeau | last post by:
Hey guys, I have been mulling over this problem for a few days and have yet to come up with a query that will give me the expected results. I am working on a database that stores employee...
1
by: sajin | last post by:
Hi I have 3 tables in my database. Students , SessionTable and Campus. Table campus have two fields CampusId and CampusName and SessionTable have two fields SessionId and Sessioname ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.