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
How long does a session last in php?
Explain what are the two main string operators?
Whether it is possible to share a single instance of a memcache between multiple php projects?
What is php and how do you use it?
What is overloading and overriding in oop?
Explain a resource?
What is $this in php?
Explain why would we use === instead of ==?
How can we calculate the similarity between two strings?
What are the ways to define a constant in php?
What is final class and final method in php?
Tell me in php, objects are they passed by value or by reference?
Write a program in php to find the occurrence of a word in a string?
What are the Advantages and Application Areas of PHP?
Is php easier than javascript?