Click here to Skip to main content
12,954,464 members (50,922 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I am working in the online faculty appraisal system.
Now I want that at login the ip address of that system i find and then when a student logout the application after fill the feed back form second time login can't be done.

In short i want to make one time login at a particular system .
how can i do it
Please Help me regarding this
Posted 15-Jan-13 0:14am
Abhishek Pant 15-Jan-13 6:21am
I think blocking a ip address is not a good solution.As If i use a datacard the ip changes every time I connect so its not a good solution but you must do this with id of that student for a particular day.
AnkurGupta OM 15-Jan-13 21:53pm
Sir how can i do it with student id
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

This is a bad idea - IP addresses are not unique to a specific piece of equipment, instead they are specific to a single point of connection to the internet (an ADSL router for example). If there are 4 people using the same router, they will all have the same IP address, and a ban will affect all of them, not just one. To add to your problems, the IP address is normally allocated by the ISP, and can be changed or spoofed pretty easily.

Instead, look at either making people log in in some way, or use cookies to prevent multiple feed back - it's not perfect, but it is pretty much the best you can do.
Milind_T 15-Jan-13 6:43am
100% agree.
shaikh-adil 15-Jan-13 13:05pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

100% agree with OriginalGriff.

Login id based solution should be perfect.
Have a "boolean" column in Login table. Once you finish with the feedback, disable the login.
This will save all the headaches.
If you do not have DB, consider a encrypted flat/XML file. That should also do the job.

Hope that helps
prashant patil 4987 15-Jan-13 6:49am
agree +++++++5. Milind.... great answer..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,539
CHill60 3,490
Maciej Los 3,143
ppolymorphe 2,030
Jochen Arndt 1,975

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 15 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100