How can we do user authentication without using
session/cookies ? For ex:- From page1 accepts user name and
password and need to check in all other pages whether the
user has logged in or not

Answer Posted / yagnesh

when user logged in it will create one txt file on the
server with the ip address of the client machine if and
checks every time when page reload is file exist on the
server or not if not then it will display login page.
simulteneously system will check with the database of last
activity of the perticular ip if that ip has not any
activity withing given time then system will delete that
file....... we can set cron for deleting of the file

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of trim function in php?

599


How to create a mysql connection in php?

591


What is the output of the ucwords function in this example?

626


What is alias in php?

645


What is a query in php?

553






What is php string function?

610


What does sign mean php?

649


Tell me what is the main difference between require() and require_once()?

629


Write a program to find no of days between two dates in php?

601


What are the differences between session and cookie?

620


What is the difference between php and core php?

567


What is php explain how php works?

601


What are php string functions?

619


What version of php do I have windows?

581


How can we enable error reporting in php?

555