| | |
Deleting session id's created by browsers on server's
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2009
Posts: 24
Reputation:
Solved Threads: 0
Hi,
I am having a web application, which can be accessed by different users based on their userid's and passwords.
Now I want to prevent users from accessing the application from more than one system.
In order to prevent this I have created a table with three columns as :
userid password flag
with flag having two values (true, false)
true means that user is logged in
false means looged off
session id generated by the server when the session is created
SESSION.SESSIONID gets the id generated on the IIS.
reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx
now how can I delete it?
so that there can be only one user per user id.
In short I want to implement a feature used by gmail where one user can expire or log out all other users on different machines using same user id's.
am I right in achieving the goal?
I don't want to use Asp.net MembershipProvider.
thanks
Shankbond
I am having a web application, which can be accessed by different users based on their userid's and passwords.
Now I want to prevent users from accessing the application from more than one system.
In order to prevent this I have created a table with three columns as :
userid password flag
with flag having two values (true, false)
true means that user is logged in
false means looged off
session id generated by the server when the session is created
SESSION.SESSIONID gets the id generated on the IIS.
reference: http://msdn.microsoft.com/en-us/library/ms524326.aspx
now how can I delete it?
so that there can be only one user per user id.
In short I want to implement a feature used by gmail where one user can expire or log out all other users on different machines using same user id's.
am I right in achieving the goal?
I don't want to use Asp.net MembershipProvider.
thanks
Shankbond
•
•
•
•
In short I want to implement a feature used by gmail where one user can expire or log out all other users on different machines using same user id's.
UserId, ClientSessionValue
When ever user login, store unique cookie(ClientSessionValue) in browser as well as in login_detail table. so if user is going to login from 3 machine, store his id 3 times against the 3 different ClientSessionValue in data base table.
So when ever user want to logout from a machine, delete one row from login_detail of corresponding ClientSessionValue.
When ever any request will come from client it will come with ClientSessionValue cookie. so if this value is not present against that user means, that user is logged out of that machine.
Now, if user want to expire or log out all other login from different machines, just delete all rows except one row from where delete request has come.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Indian Developer
http://falaque.wordpress.com/
•
•
Join Date: Jun 2009
Posts: 24
Reputation:
Solved Threads: 0
•
•
•
•
When ever any request will come from client it will come with ClientSessionValue cookie. so if this value is not present against that user means, that user is logged out of that machine.
.
that is what I am trying to know ?
any help shall be appreciated
thanks
![]() |
Similar Threads
- IE6/IE7 unexpectedly drops the PHP Session ID cookie (PHPSESSID) (PHP)
- Remote Desktop/Terminal Server - 'take over' session (Windows NT / 2000 / XP)
- Deleting session cookie (PHP)
- J2EE Architecture in Brief (JSP)
- Invalid Session when clicking a link (PHP)
- difference between session and application scope at jsp (JSP)
- urgent: session timeout occurs unexpectedly(given both web.config & global.asax code) (ASP.NET)
- How session is maintained in Active Server Pages? (ASP)
Other Threads in the C# Forum
- Previous Thread: suggestions for first moderately ambitious application?
- Next Thread: Time in C#
| Thread Tools | Search this Thread |
Tag cloud for C#
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# chat check checkbox class client color combobox control conversion csharp custom database datagridview dataset datetime degrees development draganddrop drawing encryption enum excel file files form format forms ftp function gdi+ image index input install java label list listbox listener login mandelbrot math mouseclick mysql networking object operator oracle path photoshop picturebox pixelinversion post prime programming radians regex remote remoting resource richtextbox save saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer treeview update usercontrol validation view visualstudio webbrowser windows winforms wpf xml





