473,385 Members | 1,355 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,385 software developers and data experts.

login managment

Hi to everybody,

I would like to know if someone has already faced the following problem: I
have to manage the access to a reserved area in such way to prevent that two
accounts are contemporarily active.
The problem doesn't apparently seem difficult: I add a field "loggato" in
the table "consumers" (what it also serves me for the user authentication)
and when I make the login (correct username and password) set to 1 that
field, while during the logout set to 0 that field. During the login
obviously I verify that the field "loggato" both to 0 because in contrary
case I prevent the access (the consumer is already login).

Excuse me for the premise but it was essential to understand to fund the
true problem: for the nature of the reserved area obviously I manage the
sessions with a cookie, now with the new feature that has been me in demand
it occurs the following problem: if the consumer allows to expire the cookie
or if closes the browser any reset the field "loggato" to 0 and so that
consumer cannot login anymore!

If someone is already found with a similar problem I would be really
thankful if you/he/she could give me a right-hand...

Thanks in advance.
Regards.
Enea
Jul 17 '05 #1
1 1691
On Tue, 23 Mar 2004 11:28:20 +0100, Enea wrote:
Hi to everybody,

I would like to know if someone has already faced the following problem: I
have to manage the access to a reserved area in such way to prevent that two
accounts are contemporarily active.
The problem doesn't apparently seem difficult: I add a field "loggato" in
the table "consumers" (what it also serves me for the user authentication)
and when I make the login (correct username and password) set to 1 that
field, while during the logout set to 0 that field. During the login
obviously I verify that the field "loggato" both to 0 because in contrary
case I prevent the access (the consumer is already login).

Excuse me for the premise but it was essential to understand to fund the
true problem: for the nature of the reserved area obviously I manage the
sessions with a cookie, now with the new feature that has been me in demand
it occurs the following problem: if the consumer allows to expire the cookie
or if closes the browser any reset the field "loggato" to 0 and so that
consumer cannot login anymore!

If someone is already found with a similar problem I would be really
thankful if you/he/she could give me a right-hand...

Thanks in advance.
Regards.
Enea


You may want to try sessions instead of cookies to manage logins.

I'm not clear on why setting "loggato" to zero by closing the browser is
causing a problem, though.

--
Jeffrey D. Silverman | jeffrey AT jhu DOT edu
Website | http://www.wse.jhu.edu/newtnotes/

Jul 17 '05 #2

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

Similar topics

4
by: Jorge_Beteta | last post by:
Hello, I work for an attorney staff, so basically the whole day they are sending themselves a lot and a lot of papers (Word docs or Excell sheets). We are going to propose them the use of a...
6
by: kai | last post by:
Hi, All I use SQL Server 2000 and Win 2003 Server. I try to create a SQL Server Login audit log using Profiler, but cannot find the tools. I looked at the Windows Event Viewer, it only logs...
0
by: falcon | last post by:
I know I came after the battle. And I have just another sight on context managment. Simple Context Managment may look in Python 2.4.1 like this: Synhronized example: def...
2
by: Jason Davis | last post by:
Hi there, Is anyone familier with an access managment system for orders? Something simple like products, alphabetic list of clients and archive of ordered products. Thanks! Jas.
3
by: Eirik Eldorsen | last post by:
I'm starting a project where I willl need an Ad Managment solution. Could someone recommend me a product? -- Eirik
5
by: RedEye | last post by:
Hello, I am working on a test site to explore the new login controls and membership features of ASP.NET v2.0. I have tested the controls using SQL Express and have now decided to try using a...
3
by: Brian Henry | last post by:
I have an existing user managment system that has been in our asp.net 1.1 app for a couple years now, all the user managment is done through an application that is a win form, and stored in SQL...
2
by: Daniel | last post by:
Hi, I have a question regarding the memory managment in stl stacks. I want to use stacks to store a very large amount of numbers (some millions), thus I'm interested in how the stack behaves...
1
by: Vince | last post by:
Hi, While working with the Login controls, VS creates a ASPNETDB.MDF database to store user accounts. Is that database only used for the storage of login credentials and if so, does this...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.